TestNG skips when browser closed

3 views
Skip to first unread message

A R K Satyanarayana Raju

unread,
Jan 4, 2017, 10:14:31 PM1/4/17
to testng-users
Hi, 

I am facing a problem when run testNG.xml.

<suite name="Suite1" verbose="1">
 <test name="Test_1">
  <classes>
   <class name="Pack1.FirstClass">
    <methods>
     <include name="test1" />
     <include name="test2" />
     <include name="test3" />
     <include name="test4" />
    </methods>
   </class>
   
   <class name="Pack1.SecondClass">
    <methods>
     <include name="test5" />
     <include name="test6" />
     <include name="test7" />
     <include name="test8" />
    </methods>
   </class>
  </classes>
 </test>
</suite>

This is my testNG.xml
In above testng if browser closed in 'test3' then remaining all classes getting skipped.
How to solve this?
I have invoked browser in @BeforeClass
I want to continue execution.

Thanks,
Raju

⇜Krishnan Mahadevan⇝

unread,
Jan 4, 2017, 10:19:38 PM1/4/17
to testng...@googlegroups.com
You would need to share more details. We don't know what your test class looks like (or) how your methods look like.

Please help create a simple sample which can help demonstrate your issue.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages