Working with Selenium IDE

  1. Download selenium IDE Firefox plug-in and install from Selenium IDE Download

    Restart Firefox. After Firefox reboots you will find the Selenium-IDE listed under the Firefox Tools menu.

  2. Open the IDE To run the Selenium-IDE, simply select it from the Firefox Tools menu. It opens as follows with an empty script-editing window and a menu for loading, or creating new test cases

  3. Click the record button to record the user’s browser actions.

    – Enter the address of the application under test (“http://www.appvance.com/” ) inside the Base URL textbox.

    – By default, the Record button is in the ON state. Remember to tune it ON if it is in an OFF state so

    – Open the application under test (https:// http://google.com ) in Firefox.

    – At the end, we would end the recording session by tuning the record button into the OFF state.

  4. Save a test script.

    Note:

    1. Export the Selenium IDE script as java / JUnit / Webdriver and save it as a .java file. Create a jar file of a web driver script using Eclipse. Users can make use of this jar file in Appvance IQ to run java tests as functional or performance tests.

    1. Create a Data-driven script in selenium IDE and save it as a selenium script. Users can make use of this script in IQ to do Data-driven testing.

    Replace actual values with data-enabled values in the selenium script.

    Using the above-saved selenium script creates a scenario in IQ.

    Add DPL to data enable script in IQ by clicking on Add Data source link under the Resources panel

    Now go to the test case and add this DPL to it.

    Save and play scenario.

    Refer to this video for more information: Selenium Webinar

  5. Create a Selenium RC scenario using the above script in Appvance Scenario Builder.

  6. Ensure there is Seleniumrc 2.53 bundle added under the resources panel

  7. While running a functional test give 100 percent logs to see them out in a controller window and 5-10 percent logs while running a performance test

  8. Play the above-created scenario

  9. Click the “Click here” link in the controller window, the report is opened in a new tab

  10. Download the Iteration summary report

Iteration summary report

NOTE: Currently, the Throughput and throughput percentile are not enabled in selenium RC (HTML) files.

For data driving in selenium IDE: Open the selenium script in IDE, under the value column for the 'type' command, replace the actual value with "the name of the column from the CSV sheet without any $ symbol or quotes", Use the same name in the data sheet with the list of entries.