Presentation is loading. Please wait.

Presentation is loading. Please wait.

By Ms.A.C.Sumathi AP(SG)/ Dept of CSE SNS College of Engineering, CBE.

Similar presentations


Presentation on theme: "By Ms.A.C.Sumathi AP(SG)/ Dept of CSE SNS College of Engineering, CBE."— Presentation transcript:

1 By Ms.A.C.Sumathi AP(SG)/ Dept of CSE SNS College of Engineering, CBE

2  Application software developed for hand held mobile devices is tested for its functionality, usability and consistency.  Mobile application testing can be automated or manual type of testing.  Mobile applications either come pre-installed or can be installed from mobile software distribution platforms

3  Variety of Mobile Devices  Diversity in Mobile Platforms/OS  Mobile network operators  Scripting

4  Cross-Platform (Android and iOS) - Appium - Calabash/cucumber - Ranorex - Monkey Talk  For Android - Robotium - Android Lint  For iOS -Clang Static Analyzer -Analyze code from XCode

5  Calabash enables to write and execute automated acceptance tests of mobile apps based on cucumber.  Calabash is cross-platform, supporting Android and iOS native apps. It is open source and free tool.  Calabash consists of libraries that enable test-code to programmatically interact with native and hybrid apps.

6  Calabash consists of two libraries calabash-android and calabash-ios.  calabash-android is the automation and testing library for Android, and similarly calabash-ios is for iOS.  These low-level libraries that empower the Cucumber tool to run automated functional tests on Android and iOS phones and tablets as well as on simulators.

7  The interaction consists of a number of end-user actions. Each action can be one of  Gestures - Touches or gestures (e.g., tap, swipe and rotate).  Assertions - For example: there should be a "Login" button or the web view should contain an " " element with the text "Hello".  Screenshots - screen dump the current view on the current device model

8  Enables QA, business staff and developers to work at a high level by writing tests in a natural language using the terms and concepts of their business domain.

9

10  Features. - feature files describe the user-stories you want to test. You can test one or more features in one test run.  Step Definitions. - Calabash Android comes with a set of predefined steps - These steps are generic and made to get up and running fast. - To get more into Calabash we can implement our own custom steps.

11  No modifications need to be done to the app before testing it.  Instrumentation Test Server. - This is another app that will be installed and executed the device. This app is based on ActivityInstrumentationTestCase2 from the Android SDK. It is generated by the Calabash Android framework.

12

13

14

15

16  1. Download Android sdk from developer.android.com/sdk  2. You need to have Ruby installed. Verify your installation by running ruby -v in a terminal - it should print "ruby 1.8.7" (or higher).  If you are on Windows you can get Ruby from RubyInstaller.org  3. a) Install calabash-android by running  gem install calabash-android  b) To install latest version of calabash use the following command  gem install calabash-android --version 0.4.15.pre2  4. Set the Android path to the following in system variables:  ANDROID_HOME=C:\Program Files\Android\android-sdk  5. Set the JAVA_Home path to the following in system variables:  JAVA_HOME=C:/Program Files/Java/jdk1.7.0_17

17

18  To run your test:  calabash-android run  Calabash-android will install an instrumentation along with the app when executing the app. We call this instrumentation for "test server".  The "test server" has special permission that allows it to interact very closely with your app during test.  Test server is built for every new binary or to an upgraded version.

19


Download ppt "By Ms.A.C.Sumathi AP(SG)/ Dept of CSE SNS College of Engineering, CBE."

Similar presentations


Ads by Google