Friday 10 February 2012

Selenium IDE - parameterization

For parameterization you need to create js file
For eg. Js file contains
  var username=new Array("parameterization1@mailinator.com","parameterization2@mailinator.com");
  var password=new Array("parameterization1","parameterization2");

Sample script for parameterization



16 comments:

  1. I tried above example and added user extensions : data.js and goto_sel_ide.js file for while loop .But the test case doesn't run

    ReplyDelete
  2. Which user extension we should be adding for while loop ?

    ReplyDelete
  3. Are you getting any error??
    The same extension will be used for while loop..

    ReplyDelete
  4. [info] Executing: |store | 0 | looptimes |
    [info] Executing: |while | storedVars.looptimes <=1 | |
    [error] Unknown command: 'while'
    i hanged here, it is not identifying while command, Please help us.

    ReplyDelete
  5. For while command you need extension - goto_sel_ide.js file, you can get it from
    http://wiki.openqa.org/pages/viewpageattachments.action?pageId=379&metadataLink=true

    ReplyDelete
  6. I want to use loadTestData command from which extension I can get this.

    ReplyDelete
  7. Also for Data Driven testing I tried installing flow-control, include4d and data driven extensions but I am getting exception error. Please help me out on this.

    ReplyDelete
  8. Great job, thanks, it helped me a lot :)

    ReplyDelete
  9. How do I do exactly for parameterization in IDE?

    ReplyDelete
  10. For parameterization, I want to get the values from excel or csv file, how can i get it in Selenium IDE. ??

    ReplyDelete
  11. Can anyone suggest that how to do parameterization in sel ide?
    I want to pass 2 or more id for login.
    Is this possible?

    Thanks in advance!!!

    ReplyDelete
    Replies
    1. Post itself gives idea about parametrization..Please have a look in detail.

      Delete
  12. Threw an exception: username is not defined


    Am getting above error .. Is anyone help me ?

    ReplyDelete
  13. Have you uploaded JS file with required input?
    Please check initial part of Post for reference.

    ReplyDelete
  14. HI,
    I have modified the code for more than 2 users when the user log-in the page; each user has different contents specified for it.Using the above code data.js and goto_sel_ide.js. It only considers 1st user skips the rest ,it is stuck in loop keeps showing user1 log-in.Could you please advise what can be done here.

    ReplyDelete