- zlos7arAmateur
- Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany
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
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 ?
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 ?
- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 38
Location : Denver, CO
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.
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.
- zlos7arAmateur
- Posts : 41
Join date : 2012-01-13
Age : 36
Location : Germany
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.
Permissions in this forum:
You cannot reply to topics in this forum