Testng : Test Case Is Ignored
I am using TestNG framework for writing test cases for my Android application. For which I am using Appium testing tool. For this I have defined following files : pom.xml file - r
Solution 1:
Based on what you have described in comments , I think you want to run everything in order by defining all classes in one test. Then you should remove priorities and groups and run it with this xml with preserve-order="true"
. This should run test in the order they are defined in xml
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE suiteSYSTEM"http://testng.org/testng-1.0.dtd"><suitename="androidapp" ><testname="FirstScenario_1"preserve-order="true"><classes><classname="scenarios.FirstTest" ><methods><includename="setUpDriver" /><includename="splashScreen_1" /><includename="splashScreen_2" /></methods></class><classname="scenarios.SecondTest"><methods><includename="logInScreen_1" /><includename="logInScreen_2" /></methods></class></classes></test></suite>
You can also use @dependsOnMethods
to run methods in the order you want . Have a look at this . The ordering described there should also help you to resolve this
Post a Comment for "Testng : Test Case Is Ignored"