Sunday, 27 May 2012

Checkpoints in selenium

Check Points  @ Selenium IDE (ASSERTIONS)
·         Assertions  verifies that the state of the application confirms to what is expected
·         Assertions  can be added to the test case, irrespective of the IDE is in recording mode or not
·         Assertions  are classified into 3 types.
Verify
•Assert

WaitFor

Verify
Verify is used for validating the actual and expected values. If the actual and expected value matches. it resumes Execution , irrespective of pass or failure.
On Failure , It displyes the actual and expected behavior in the log and increase the error count by One
Example:-

Command
 Target            
Value
verifyTextPresent

Welcome to My Home Page
verifyText 
    //h2
Downloads


Assert
Assert is used for validating the actual and expected values. If the actual and expected value matches, it is treated as pass. Otherwise it is treated as a failure. . it stops Execution , if it is failure.
On Failure , It displyes the actual and expected behavior in the log and increase the error count by One

Example:

Command
Target          
                     Value
assertTitle
Downloads

assertTable
1.2.1
                Selenium IDE


WaitFor
WaitFor is used for validating the actual and expected values. If the actual and expected value matches, the controller will be transferred to the next statement immediately. Otherwise WaitFor command let the controller to wait till the actual and expected value matches or till the time out happens.
On failure, it displays time out error in the log and continues with next statement execution in the test case. For each failure error count increases by 1.
Example:

Command
  Target     
               Value
waitForElementPresent
     Welcome to My Home Page
waitForPageToLoad
                      30000

4 comments:

  1. It was nice article it was very useful for me as well as useful for online SELENIUM training learners.thanks for providing this valuable information.

    ReplyDelete
  2. It is a very useful Thanx!!....I have just started learning Selenium...We have a project implemented using MVC model having JQuery pages....Which is best for automation? Junit or MBUnit?


    ReplyDelete
  3. Hyderabadsys online Training is a one of the Top Online Training and giving quality Training on Selenium. Hyderabadsys have Experienced and corporate trainers will share their knowledge during the classes. Our documents for Selenium course through word format are specially designed by our trainers for Students..
    Hyderabadsys clarifying bugs and basic issues and advancement exercises with 24*7 specialized backings sevices.Hyderabadsys helps you to addition profundity learning on Selenium and it makes you prepared to turn into an ongoing Software Developers.
    Hyderabadsys online training give you complete freedom to learn anytime from anywhere. Selenium online training Provides quality online and interactive live video sessions. Hyderabadsys helps you to gain depth knowledge on Selenium and it makes you ready to become a real time Software Developers.

    ReplyDelete