Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Data Driven Testing using Selenium RC, Ruby
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sangeeta  
View profile  
 More options Apr 3 2009, 12:46 pm
From: sangeeta <sangeeta.naraya...@gmail.com>
Date: Fri, 3 Apr 2009 09:46:13 -0700 (PDT)
Local: Fri, Apr 3 2009 12:46 pm
Subject: Data Driven Testing using Selenium RC, Ruby
Hi,
I was wondering what folks are using to make their tests data driven.
I am testing a Rails app using Selenium RC and Ruby.

One option seems to be RubyFIT but it doesn't seem to be very active -
the last release was on May 21, 2006. Maybe I am incorrect in my
assumption and it is being widely used and maintained? The other
option is to go with a simple text file/csv to store input and
expected output data and write my own code to read it.

I am looking for recommendations on which approach to take, bearing in
mind that the organization has very minimal staffing - think one part
time QA (test developer) so something simple and quick to implement
and maintain would be best.

All opinions are welcome - thanks!!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harv Gill  
View profile  
 More options Apr 3 2009, 3:43 pm
From: Harv Gill <harvg...@gmail.com>
Date: Fri, 3 Apr 2009 12:43:11 -0700
Local: Fri, Apr 3 2009 3:43 pm
Subject: Re: [selenium-ruby:362] Data Driven Testing using Selenium RC, Ruby

try using a ruby gem called Faker.  google it and see if it helps.

On Fri, Apr 3, 2009 at 9:46 AM, sangeeta <sangeeta.naraya...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joaquin Rivera Padron  
View profile  
 More options Apr 4 2009, 9:29 am
From: Joaquin Rivera Padron <joahk...@gmail.com>
Date: Sat, 4 Apr 2009 15:29:51 +0200
Local: Sat, Apr 4 2009 9:29 am
Subject: Re: [selenium-ruby:363] Re: Data Driven Testing using Selenium RC, Ruby

faker is a good one, I tipically use it with machinist (at github) and it's
a charm

there are some others, among them that I recall:
fixture replacement
factory girl
dm-sweatshop

but I haven't use those, it should not be difficult to find more of them,
maybe you could ask in rspec list, there most be lots of people who know

hth
joaquin

2009/4/3 Harv Gill <harvg...@gmail.com>

--
www.least-significant-bit.com

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chad Woolley  
View profile  
 More options Apr 4 2009, 10:14 am
From: Chad Woolley <thewoolley...@gmail.com>
Date: Sat, 4 Apr 2009 07:14:56 -0700
Local: Sat, Apr 4 2009 10:14 am
Subject: Re: [selenium-ruby:364] Re: Data Driven Testing using Selenium RC, Ruby
On Sat, Apr 4, 2009 at 6:29 AM, Joaquin Rivera Padron

<joahk...@gmail.com> wrote:
> faker is a good one, I tipically use it with machinist (at github) and it's
> a charm

> there are some others, among them that I recall:
> fixture replacement
> factory girl
> dm-sweatshop

Fixjour: http://github.com/nakajima/fixjour/tree/master

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sangeeta Narayanan  
View profile  
 More options Apr 4 2009, 4:43 pm
From: Sangeeta Narayanan <sangeeta.naraya...@gmail.com>
Date: Sat, 4 Apr 2009 13:43:23 -0700
Local: Sat, Apr 4 2009 4:43 pm
Subject: Re: [selenium-ruby:365] Re: Data Driven Testing using Selenium RC, Ruby
Thanks everyone, for your replies - I will take a look at these  
options and make a decision.

Sangeeta

On Apr 4, 2009, at 7:14 AM, Chad Woolley wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shuffs  
View profile  
 More options May 8 2009, 10:51 am
From: Shuffs <mike.schaufelber...@gmail.com>
Date: Fri, 8 May 2009 07:51:26 -0700 (PDT)
Local: Fri, May 8 2009 10:51 am
Subject: Re: Data Driven Testing using Selenium RC, Ruby
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!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »