sangeeta -
I also have been wrestling with this issue of DDT (data driven
testing). I am a believer of the KISS (keep it simple stupid)
methodology, and the simplest way to store data when using HTML
(seleneese) based test scripts in selenium IDE or RC is to create a
local HTML document that is simply a table of data. Then have your
selenium script first go to this HTML table of data and store text
data to be used for the remainder of the test and then go to you login
page to perform the rest of the test. Below is a output from my
results file that illustrates a simple login example.
COMMAND
ID
VARIABLE_NAME
store file:///C:/Selenium/Tests/dataSuite.html dataSuite
store
http://yourTestSiteHere.aspx demoAPP
store ctl00_MasterContentPlaceHolder_butLogin login_btn
store ctl00_MasterContentPlaceHolder_UserName userNameTXT
store ctl00_MasterContentPlaceHolder_Password userPasswordTXT
open ${dataSuite}
storeText //tr[2]/td
userName
storeText //tr[3]/td
userPassword
open ${demoAPP}
assertTitle Login
type ${userNameTXT} ${userName}
type ${userPasswordTXT} $
{userPassword}
clickAndWait ${login_btn}
assertTitle Home
I understand that this a most primitive way of doing data with
selenium, but i strive for simplicity, and this works great. One
drawback is that you must manually fill up the dataSuite table with
data first, and then you can only read data not write to it. Hope this
helps!