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
avatar
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany

getting info from mysql database Empty getting info from mysql database

Fri Feb 17, 2012 4:52 pm
What I need to do is:

I am testing a website where users can submit different ideas on a specific subject. On the home page I have a
with the most discussed ideas ( ideas with the most comments). The thing is that the function for the most discussed ideas takes the top 10 ideas and randomly display 3 of them on the home page. So I was wondering how can I make a test for that, because the only way to get that information for the ideas is from the database and also how can I handle with the random part ?

I hope some of you guys have an idea. Even if you are not sure you can post your proposal so we can discuss it together and find a solution. Is it even possible to extract information form the database with selenium ?
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO

getting info from mysql database Empty Re: getting info from mysql database

Sat Feb 18, 2012 1:35 am
I don't believe with Selenium IDE that you can extract any info from a DB. Even using a custom command in the user-extension.js file, I think you would have to somehow interface it with a web method, which could use a programming language of some sort to get to the DB. (I asked some developers and this is basically what I gathered.) If there is a way though, I would love to know how.

I am still a little confused as to what you are actually trying to test though.

Are you testing the randomizing, the content of these ideas, the number of comments, etc.? There may be ways to test what you are trying to do without going directly to the DB.

avatar
zlos7ar
Amateur
Amateur
Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany

getting info from mysql database Empty Re: getting info from mysql database

Mon Feb 20, 2012 3:24 pm
I am trying to test if the 3 random ideas I get are 3 of the top 10 with most comments. Thanks for the info I will try to solve this when I have some more free time for it and if I find a solution I will post it here.
Sponsored content

getting info from mysql database Empty Re: getting info from mysql database

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