import static com.autoexsel.mobile.driver.AppiumDriverManager.*;
import org.testng.annotations.AfterSuite;
import cucumber.api.CucumberOptions;
import cucumber.api.testng.AbstractTestNGCucumberTests;
@CucumberOptions(features = "feature-files/", glue = "autoexsel/cucumber/", tags = { "@cucumberTag" })
public class MobileTestRunner extends AbstractTestNGCucumberTests {
@AfterSuite
public void teardown() {
closeApplication();
}
}
@Before
public void startTestReport(Scenario scenario) throws Exception {
startTest(scenario.getName());
}
@After
public void endTestReport(Scenario scenario) {
System.out.println(scenario.getName()+" :"+scenario.getStatus().toUpperCase()+"\n");
endTest();
}
AutoExSel provides many inbuilt functions which helps to automate mobile(IOS and Android) applications. Below are the steps to use inbuilt functions in AutoExSel automation framework.
import static com.autoexsel.mobile.driver.AppiumDriverManager.*;
import static com.autoexsel.services.wrapper.RestAssuredManager.*;
{
"appium-server": {
"ipAddress": "127.0.0.1",
"port": "4726"
},
"ios-app": {
"platformName": "IOS",
"platformVersion": "12.1",
"deviceName": "iPhone 8",
"fullReset": "false",
"noReset": "false",
"app": "/Users/ashdiksh/Downloads/Iceberg 25.app"
},
"ios-web": {
"platformName": "IOS",
"platformVersion": "12.1",
"deviceName": "iPhone 8",
"browser": "chrome"
},
"android-app": {
"platformName": "IOS",
"platformVersion": "12.1",
"deviceName": "iPhone 8",
"fullReset": "false",
"noReset": "false",
"app": "/Users/ashdiksh/Downloads/Iceberg 22.app"
},
"android-web": {
"platformName": "IOS",
"platformVersion": "12.1",
"deviceName": "iPhone 8",
"browser": "chrome"
}
}