Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
Archana
Archana
Regular Participant
Regular Participant
Posts : 33
Join date : 2009-08-21

Testing database records Empty Testing database records

Mon Aug 31, 2009 9:52 pm
Hi,
In my web application, many times I come across database testing. First could you suggest any tools for this requirement. I have been testing my app with selenium RC PHP.

At all times, I couldn't write expected result. Suppose if a complete db record is shown on my webpage with different columns, I can't write expected result, as site grows up, many new records will come, So all the times we don't know expected result (it is such a case showing the db records in descending order with all the column values & it also might have an associated db field of other table.)

This problem is slurping me from too many days. Please help.
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

Testing database records Empty Re: Testing database records

Tue Sep 01, 2009 11:35 am
hi,

For this you have to write your own function in PHP which verify your webtable

eg:

verifyWebtable(array ExpectedData , array ActualDataFromWebPage , boolean status)
{ }
You have to think what logic you write, so it will work according for your requirement. If you successfully create this fuction, then you can use anywhere in projec.

Selenium is not directly supporting any database testing except the following command:

storeTable ( tableCellAddress, variableName )
Gets the text from a cell of a table. The cellAddress syntax tableLocator.row.column, where row and column start at 0.

Arguments:

* tableCellAddress - a cell address, e.g. "foo.1.4"
* variableName - the name of a variable in which the result is to be stored.

Returns:
the text from the specified cell


If you want to do it with help of other tool, you can try SQLUnit or Builder AU.

Best of luck.

Bye
Back to top
Permissions in this forum:
You cannot reply to topics in this forum