Quantcast

TestNG skips when browser closed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

TestNG skips when browser closed

rkramakrishna357
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

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: TestNG skips when browser closed

⇜Krishnan Mahadevan⇝
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/

On Thu, Jan 5, 2017 at 8:44 AM, A R K Satyanarayana Raju <[hidden email]> wrote:
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

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Loading...