
Usr/bin/ruby -e " $(curl -fsSL )" Copy the code

Using simple and easy to write Java language, Appium open source framework and unit test testng, create maven project (in order not to introduce JAR package into the project), write the required JAR into pom. You can also run the test class by selecting it and then right-clicking on it, selecting Run as from the menu, and then choosing TestNG Test.Saucelabs () is a virtual device provided by saucelabs () in order to save time and cost in automated testing, and to cover all iOS versions more efficiently to avoid compatibility problems and achieve comprehensive automated testing. Total tests run: 1, Failures: 0, Skips: 0 Running:Ĭ:\Users\somelocalpath\testng-customsuite.xml The result of the test execution is displayed in the Console and Results in windows of Eclipse as shown in the following screenshot. This will compile and run the TestNG test class that we have written. Now if you would like to run the newly created configuration, just click on Run after clicking on Apply. Let’s enter the configuration name as TestNGRunConfig and select the newly created class under the Class section and click on Apply.Ĥ.

Suite: In case you have suite files in the form of testing.xml files, you can select those here for execution.Package: If you would like to execute all the tests inside a package, you can specify these in this box.Groups: In case you would like to run specific test methods belonging to a particular TestNG group, you can enter those here for executing them.Method: Using this you can run only a specific method in a test class.Class: Using this option you can provide the class name along with the package to run only the said specific test class.Please notice that TestNG plugin provides multiple options for running your test cases as follows:
