How to do data driven testing in SeleniumIDE

1,864 views
Skip to first unread message

sanjay naani

unread,
Jun 10, 2011, 12:54:09 PM6/10/11
to seleniu...@googlegroups.com
Hi All,

Please any body help me in doing data driven testing with seleniumIDE.

I heard it is possible by creating html table and passing some values we can access in those values in script.

Thanks in advance.

mam_p

unread,
Jun 10, 2011, 5:11:05 PM6/10/11
to Selenium Users

Kiran Kumar Kendole

unread,
Jun 11, 2011, 7:28:51 AM6/11/11
to seleniu...@googlegroups.com
For this you need to add three addons in your selenium IDE , user extenstions.
Find the attachments.

loadTestData  is the command for loading your XML.

Your XML should be in the following structure.

<testdata>
    <test var1="10" var2="20">
    <test var1="30" var2="50">
</testdata>

nextTestData | |

Each time loads one line.

you can access the variables using ${var1}, etc

KIRANKUMARKENDOLE


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.

datadriven.js
goto_sel_ide.js
user-extensions.js.includeCommand4IDE

Jamil Alajrab

unread,
Jun 10, 2011, 1:24:21 PM6/10/11
to Selenium Users
Selenium IDE is a recording tool; you should look into using selenium
RC or webdriver which would enable you to do data driven testing
(Through a database, CSVs, text files ..etc ) using the language of
your choice (Java, Python, Ruby ..etc)

Robert

unread,
Jun 10, 2011, 2:28:13 PM6/10/11
to Selenium Users
Hello Sanjay,

Data driven testing is a very powerful way to conducting automated
tests. However, SeleniumIDE is only a partial answer to giving you
this capability. Here are the basic steps to write data driven tests:
1.) Record (capture the workflow of) a test using SeleniumIDE
2.) Output the test in your favorite language from SeleniumIDE (my
favorite is C#)
3.) Edit the code, replacing "hard-coded" values with variables
you've bound to a data source (database, file, and/or web-service)

Although it would be cool if the volunteers who wrote Selenium
provided a macro language to to facilitate what it is you would like
to do, I have wholeheartedly agree that it is a wise move to reserve
that functionality for a true programming language.

Hope this helps

Robert Barnard, Automated Test
Northpointe Institute for Public Management






On Jun 10, 12:54 pm, sanjay naani <sanjaycool.naan...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages