GithubHelp home page GithubHelp logo

appurify-sdk-example's Introduction

Appurify SDK

The Appurify SDK allows developers to record test automation scripts simply by interacting with their application. These scripts can then be uploaded to Appurify’s testing platform, and even converted into UI Automation test cases that can be extended and updated.

Note: The Appurify SDK is designed for use on real devices only and will not compile for the Simulator SDK.

Installation

  1. Link the Appurify SDK static library and the IOSurface framework into your Target. We recommend creating a separate Target to avoid unnecessarily linking the SDK into your production build.

Xcode Integration

  1. At the top of your UIApplicationDelegate add the following:
#import "Appurify_Debugger.h"
  1. Inside the didFinishLaunchingWithOptions method add
[AppurifyDebugger load];
  1. Finally, add the following to your UIViewController. This will trigger the SDK UI when the user shakes the device.
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
    if (motion == UIEventSubtypeMotionShake)
    {
        [[AppurifyDebugger sharedDebugger] toggleActivation];

    }
}

Using The SDK

Recording A Test Case

To record a test case, start by shaking the device to launch the SDK’s UI. Then tap the Start Event Recorder button.

Start Event Recorder

At this point, all UI interactions will be recorded by the SDK. When you are done recording your test case simply shake the device again and tap the Stop Event Recorder button.

Retrieving A Test Case Off Of The Device

  1. To retrieve your test case, you must be on the same wi-fi network as the device. Start by shaking the device to bring up the UI, and tap the Start HTTP Server button.

Start HTTP Server

  1. Next, you’ll need to get the IP Address of the device. To do this use the IP Address option on the Appurify SDK.

IP Address

IP Address

  1. Now that you have the IP Address, just plug it into a browser with port # 8080. This will display the contents of the web server running on the device.

Web Server

  1. Inside the Tests directory you’ll find all of your test recordings, which you can download by clicking on them.

Web Server Tests

  1. Finally, when uploading your test to the Appurify platform, simply select Appurify Recording for the Test Type.

Script Upload

HTML 5 Debugging

  1. On your mobile device under Settings\Safari\Advanced make sure “Web Inspector” is turned on.

Start Event Recorder

  1. On your desktop open Safari. Then, under Preferences\Advanced, make sure “Show Develop menu in menu bar” is enabled.

Start Event Recorder

  1. With your app running, plug your device into your desktop.

  2. On your desktop, under the Safari \ Develop menu select your application from the list.

Start Event Recorder

  1. Now, you can analyze your Webview and see detailed network output just like the app were running on your desktop machine!

Start Event Recorder

appurify-sdk-example's People

Contributors

krohling avatar

Watchers

James Cloos avatar Charles Huang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.