www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training What Will You Learn Today? Selenese Hands-On Selenium IDE Why Selenium IDE? Features
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Why Choose Selenium IDE?
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Why Selenium IDE? I have little knowledge in programming, can I create test cases? How can I create test cases and test suites for my website? Need an easy to use tool?
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Why Selenium IDE? I have little knowledge in programming, can I create test cases? How can I create test cases and test suites for my website? If I could get an UI- based test automation tool!!!! Need an easy to use tool?
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Why Selenium IDE? I have little knowledge in programming, can I create test cases? How can I create test cases and test suites for my website? If I could get a UI- based test automation tool!!!! Selenium IDE Need an easy to use tool?
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training What Is Selenium IDE?
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenium IDE Selenium-IDE (Integrated Development Environment), a tool to develop test cases It is an easy-to-use Firefox plug-in You can create and edit test cases and test suites You can record and playback tests You can convert test cases to different languages
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Features Of Selenium IDE
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Features File – Provides options to open, save and export test case and Test Suite Edit – Provides copy, paste, delete, undo and select all operations for editing Actions – Provides options for record and play Options – gives options to change IDE settings Help – Provides links for blogs and documentation Menu Bar Toolbar Test Case Pane Log/ Reference
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Features Menu Bar Toolbar Test Case Pane Log/ Reference Icon Name Description Speed Control Control how fast your test case runs Run All Runs the entire Test Suite Run Runs the currently selected test Pause/Resume Allows starting and re-starting of a running test case Step “Step” through test case by running it one command at a time Apply Rollup Rules Repetitive sequences of Selenium commands Record Records the user’s browser action
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Features Has 2 tabs:  Table – Displays the command and their parameters in a readable table format  Source – Displays the test case in the native format in which the file will be stored The Command, Target and Value entry fields display the currently selected command along with its parameters Menu Bar Toolbar Test Case Pane Log/ Reference
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Features Menu Bar Toolbar Test Case Pane Log/ Reference Log: Error messages and information messages showing the progress are displayed in this pane Reference: You can find the documentation of the command currently used UI-Element: Allows you to centrally define most of xpath statements and give page elements meaningful names Rollup: Represents a sequence of steps that can be reused throughout test-cases
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenese
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenese Selenium commands are classified into 3 basic categories:  Actions  Accessors  Assertions  Selenese is the set of selenium commands which are used to test your web application  You can use selenese to test the existence of UI elements based on their HTML tags  A command tells Selenium what to do
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenese Actions Accessors Assertions Commands which change the state of the application are classified as actions When action is performed on page, the test will fail if the action is not successful Few actions are:  Click on some link  Select some options on the page  Select a drop down value from the page Examples: • ClickAndWait • Click
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenese Actions Accessors Assertions Commands that check the state of the application and stores the application state in a variable Examples: • storeTextPresent: If text is found on the page then it stores true else stores false • storeElementPresent: If UI element is present on the page then it stores true else stores false
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenese Actions Accessors Assertions Assertions are used like checkpoints or verification points in automation Assertion verifies whether the state of the application conforms to the expected state Assertions has 3 modes:  Assert  Verify  WaitFor Examples: • verifyText • waitForPageToLoad • assertText
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Selenese Syntax Selenese syntax is simple, it consists: command and two parameters Command Parameter Parameter verifyText //div//a[2] Login goBackAndWait verifyTextPresent Welcome To My Home Page Type Id=phone (555) 666-7066 Type Id=address1 ${myVariableAddress}  The parameters are not always required  Parameters vary, however they are typically:  A locator for identifying a UI element within a page  A text pattern for verifying or asserting page content  A text pattern or a selenium variable for entering text in an input field
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Building Test Cases
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Building Test Cases • Begin by recording a test-case from interactions with a website • Automatic insertion of commands based on your actions • Typically, includes: • Click or clickAndWait • Type command • Select command • Click command • You need to check the properties of a web-page • This requires assert and verify commands • Insert Command • Insert Comment • Edit a Command or Comment Recording Verification And Asserts Editing
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Writing A Test Suite
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Writing A Test Suite  A test suite is a collection of tests. Often, one will run all the tests in a test suite as one continuous batch-job  A file similar to this would allow running the tests all at once, one after another <html> <head> <title> Test Suite Function Tests – Priority 1 </title> </head> <body> <table> <tr><td><b>Suite Of Tests</b></td></tr> <tr><td><a href=“./Login.html”> Login </a></td></tr> <tr><td><a href=“./SearchValues.html”> Test Searching for Values </a></td></tr> <tr><td><a href=“./SaveValues.html”> Test Save </a></td></tr> </table> </body> </html>
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Running Test Cases
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training Running Test Cases Run a Test Suite Stop and StartRun a Test Case Start from the middle Run any single commandStop in the middle • Tell the IDE to begin running from a specific command in the middle of the test case • Click the run button • Runs the currently displayed test case • Click the run all button • Runs all the test cases in the currently loaded test suite • Pause button can be used to stop the test case while it is running • The icon then changes to indicate the Resume button • Set breakpoints in the test case to cause it to stop on a particular command • Double-click any single command to run it by itself
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training What You Cannot Do Using IDE  Cannot be used to test big data  Recording all possible cases for automation is not possible like file upload, screen shots, etc  Cannot handle dynamic part of web application  Cannot test connections with database  Cannot handle multiple windows
www.edureka.co/testing-with-selenium-webdriverEdureka’s Selenium Certification Training

Selenium IDE Tutorial For Beginners | What Is Selenium IDE? | Selenium Tutorial | Edureka