Execution of Calabash test on multiple Simulator

In this post I have run below calabash android scenario in two simulator

Feature: Login feature

  Scenario: As a valid user I can log into my app
    When I press "Login"
    And click on web menu
    And enter into input field
    And enter into text area
    And click on Radio button B
    And click on check boxes
    And click on go button
    And set second device
    And click on web menu
    And enter into input field
    And shut down test server
    And set first device
    And click on web menu
    And enter into input field 


Running and closing application for each monkey talk test method

From couple of days I was looking that each monkeyTalk automation script would run individually without affecting each other, It means that AUT (Application Under Test) at initial stage for each test. 
So I think that if I launch application before running test and closing after test execution, I will get solution.

After searching, I got some adb commands to launch and close installed application. Below commands are for the same:
To launch Application:

adb shell am start -n com.gorillalogic.monkeytalk.demo1/.RootActivity

Where “com.gorillalogic.monkeytalk.demo1” is application package name and “RootActivity” is main activity class name.
To close application

adb shell am force-stop com.gorillalogic.monkeytalk.demo1

Where “com.gorillalogic.monkeytalk.demo1” is application package name.

Mobile app automation using MonkeyTalk Java API

Gorilla Logic has released its MonkeyTalk api for java. We can automate mobile application using java language for both iOS and android application. In this post I will show you how to setup and created test scripts in java. Following are requirement to setup:
Setup:
  1. Install Java on your machine.
  2. Download MonkeyTalk from link: “https://www.cloudmonkeymobile.com/developer-resources/downloads”
  3. Unzip downloaded monkeytalk zip file in your machine.
  4. You need to setup your application with monkeytalk agent, 
  5. Run application on emulator or devices.

Road to automate webview using Calabash

Calabash only supports web view which is in build in mobile application and not supported web application opened on mobile browser. I have searched such type application and finally got from MonketTalk sample application. In this I have created step definition and automated below form:

Road to identifying elements using Calabash's query command

In this post, I will show you the way, how to identify application elements. Before going below, make sure you resigned and created test server of your application.
Now open commands prompt, go to directory application and run below command:
 calabash-android console {ApkfileName} 
Calabash console should be opened. Following are the some basic way to find element details using query commands.

Road to data driven testing in SoapUI using groovy script with excel file

SoapUI Pro has a feature to read data from external files like: excel, csv etc. But SoapUI does not provide such feature to read data from excel file. So for reading data from excel file in SoapUI, we need to write some code in groovy script.
I this post I will show you, how to read data from excel file.I am using poi jar files to read data from excel file in groovy, download following jar files and put into SoapUI lib folder.
  • poi-3.8-beta5-20111217.jar
  • poi-examples-3.8-beta5-20111217.jar
  • poi-excelant-3.8-beta5-20111217.jar
  • poi-ooxml-3.8-beta5-20111217.jar
  • poi-ooxml-schemas-3.8-beta5-20111217.jar
  • poi-scratchpad-3.8-beta5-20111217.jar 
  • dom4j-1.6.1.jar

Script assertion in Soap UI for WSDL API methods

In this post I will show you how to add script assertion in SoapUI response of wsdl api test methods.
Here I have an example of CurrencyConvertor, I created a SoapUI project and added test case for this method as you can see in below window.

Now here in response body I will add assertion that verify the “ConversionRateResult” value is always 104 for given input value.

BDD framework in Webdriver using C#

In my previous post, I have posted BDD framework in Webdriver using Java. In this post I will show you how to create BDD framework using C#. To achieve this I will use SpecFlow. This is same as Cucumber and you can write specs (features) file by using the same Gherkin language.
Setup:
1. Install Visual studio.
2. Download and install SpecFlow from link :”click” For more detail about SpecFlow go to link ”click
3. Download NUnit Test Adapter from link:”click”.
Steps to create project: 
1. Go to File >>New >>Project and click.
2. Select Visual C# >> Class Library.
3. Enter project name into name filed and click on "OK" button, as below screen.

Java WebDriver BDD framework using Cucumber-JVM

In this post I will show you how to create BDD framework in webdriver selenium using cucumber-jvm. Cucumber –JVM is based on cucumber framework which allows to writes feature file in plain text using Gherkin language, This feature is supported by step definitions file which has implemented automation code of Webdriver.
This post cover maven based java webdriver BDD framework using cucumber for Google advance search scenario, Following are the steps to write scenario for BDD framework:
1.  First create a maven eclipse project.
WebdriverBDD
                    src/main/java                 
                   
                    src/test/java
                    ******** com/maven/test
                       
                    src/test/resources
                    ******** com/maven/test
                    pom.xml


Java junit client of WSDL webservices

In this post, I will show you how to create java client for WSDL web services.
I will Create a example of currency converter,  This is wsdl URL  for same. “currency converter

Request of “ConversionRate” method: