!!

Welcome to Selenium Webdriver Forum

As a web user you can read and search through forum content. Once you have registered and signed you can post topics, post replies, set up watch lists, modify forum settings, and use private messaging.

Author Topic: How to fail a test case at the Last  (Read 536 times)

tulsi.tester

  • Web User
How to fail a test case at the Last
« on: May 01, 2012, 09:36:26 PM »
Hi,
 I am doing my login functionality. For the first fours sets of data,
 the validation error messages are different. My question is how to
 fail a test case at the last, if one of the validation message is not
 the intended one.My test case should run till all the sets of data
 provided. Please provide any pseudo code or process to achieve it

Krishnan Mahadevan

  • Web User
Re: How to fail a test case at the Last
« Reply #1 on: May 01, 2012, 09:36:47 PM »
Soft assertions is what you seem to be looking for.
 
Check this out :
 http://seleniumexamples.com/blog/guide/using-soft-assertions-in-testng/
 
Thanks & Regards
 Krishnan Mahadevan
 
"All the desirable things in life are either illegal, expensive, fattening
 or in love with someone else!"
 

- Show quoted text -

mahadeva prasad

  • Web User
Re: How to fail a test case at the Last
« Reply #2 on: May 01, 2012, 09:37:01 PM »
For quick reference check this one
 http://seleniumexamples.com/blog/guide/using-soft-assertions-in-testng/
 
On Fri, Mar 2, 2012 at 2:36 PM, Krishnan Mahadevan <
 

- Show quoted text -

Selenium Webdriver

Re: How to fail a test case at the Last
« Reply #2 on: May 01, 2012, 09:37:01 PM »

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
542 Views
Last post March 27, 2012, 04:48:30 PM
by Tarun Bhadauria
4 Replies
446 Views
Last post April 02, 2012, 02:36:56 PM
by Mike
4 Replies
455 Views
Last post April 02, 2012, 05:04:15 PM
by Mike
9 Replies
541 Views
Last post April 02, 2012, 05:07:23 PM
by Sel List
2 Replies
451 Views
Last post May 02, 2012, 08:04:07 PM
by Akshay Rudraksha
1 Replies
437 Views
Last post May 03, 2012, 11:06:49 PM
by sita maram
0 Replies
140 Views
Last post March 22, 2013, 04:22:11 AM
by bouchehda

Review www.seleniumwebdriver.com on alexa.com