[Wtr-general] Parameterization of data in the watir

2006-09-21 Thread Sanjay kumar Rai
Hi, 
 We are using watir in our project, and we want to do the
Parameterization for few things in the script using excel sheet, if
possible then can anyone share there code or the procedure to how to do
the Parameterization using the excel sheet. Earlier also I have asked
the same question and I was suggested to use WET, but we don't want to
use WET, as it doesn't support the full text on the page, so we don't
want to use WET, so suggest me something else other than WET. Any help
would be highly appreciated.

Last time when I sent this mail I was asked that, what do I mean by
saying that the WET doesn't support the full text on the page,the
problem with the WET is all the text and images present in homepage of
our application doesn't get rendered properly in the WET.

So, this is the reason, why we are going ahead with Watir but not with
WET.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Parameterization of data in the watir

2006-09-21 Thread Zeljko Filipin
The last two times you asked this question, you were suggested to take a look at these pages:http://wiki.rubygarden.org/Ruby/page/show/ScriptingExcel
 http://www.rubycentral.com/book/win32.htmlThey were not helpful?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Parameterization of data in the watir

2006-09-21 Thread Sathya Shankar




Hi,

Its seems that you have got throughly confused with WET-UI and
WET-core. WET-core support almost all types of HTML objects. WET-UI
helps the scriptors to reduce the learning curve and is still in the
beta stage/development stage. That is the reason why you don't find
enough documentation on WET-UI, where as you'll find all the documents
on WET-core in the website.

Please go though http://wet.qantom.org site carefully to understand
about WET.

-- 
Regards, 
Sathya Shankar M G
Sr. Test Engineer
Qantom Software Private Limited
72/1B, 2nd Floor, K.H. Plaza, Kanakapura Road, Bangalore-78
Phone : 26655216-Xtn-123, Telefax : 26799269



  

   
   


  
SQA partners for your products
   www.qantom.com 
  
The future of test tools is open source
   www.wet.qantom.org
  

  



Sanjay kumar Rai wrote:

  Hi, 
 We are using watir in our project, and we want to do the
Parameterization for few things in the script using excel sheet, if
possible then can anyone share there code or the procedure to how to do
the Parameterization using the excel sheet. Earlier also I have asked
the same question and I was suggested to use WET, but we don't want to
use WET, as it doesn't support the full text on the page, so we don't
want to use WET, so suggest me something else other than WET. Any help
would be highly appreciated.

Last time when I sent this mail I was asked that, what do I mean by
saying that the WET doesn't support the full text on the page,the
problem with the WET is all the text and images present in homepage of
our application doesn't get rendered properly in the WET.

So, this is the reason, why we are going ahead with Watir but not with
WET.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Parameterization of data in the watir

2006-09-21 Thread Adrian Lewis
 We are using watir in our project, and we want to do the
 Parameterization for few things in the script using excel sheet.

Before I run my tests, I input test data through the GUI, using a CSV. Here
is some code, but a pretty simple thing to do.

 def enter_employees()
  ObjectMap.new.instance_eval  do
File.open('C:\auto_tests\test_data\employee_data.csv','r') {|f| #use
block so file is automatically closed

  f.each_line { |line|
next if /^;/ =~ line #check for ';' at start of line
i = 0
line.chomp.split(',').each{|x|
i += 1
next if x.nil? or x == null #skip nil or null values
case i
when 1 #country
  employee_country_id.select(x)
when 2 #depot
  employee_depot_id.select(x)
when 3 #first_name
  employee_first_name.set(x)
when 4 #last_name
  employee_last_name.set(x)
when 5 #user_id
  employee_user_id.set(x)
when 6 #stream_id
  employee_stream_id.select(x)
when 7 #time percentage
  employee_role.set(x)
when 8 #tel
  employee_telephone.set(x)
when 9 #e-mail
  employee_email.set(x)
when 10
  start_date.set(x)
when 11
  end_date.set(x)
end
puts #{x} has been input
}
#click_submit
#if  $ie.contains_text('There is a problem with the
employee');click_submit;end
click_new_employee_link
  }
}
end
  end

If you wanna connect directly to Excel, I will post some smaple code.

aidy



---
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] report failure question?

2006-09-21 Thread Luke
I have test, I use assert method and in the end I generate report for this test case, the problem is that when I put 'rescue=e' statement I catch exception and report shows that test pass, if I remove rescue block, then in report I have error in appropriate colum, but still when test is suppose to fail, failure column in report is empty, can you tell me how can I get information when test was done and when fail and present it in report? now I put log to file if assert fails
Luke
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Accepting Contributions

2006-09-21 Thread Egil Sorensen
Bret,

Just want to say that I think this is a very good call, and also take the 
opportunity to thank you for all your work! 

Regards,

~~ [i]Egil[/i]
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4347messageID=12233#12233
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] report failure question?

2006-09-21 Thread Adrian Lewis
 the problem is that when I put 'rescue=e' statement I catch exception
and report shows that test pass

If you rescue the exception is it not swallowed up?

do you then not need to invoke the exception message and the stacktrace?


rescue = e
  p e.message
  p e.backtrace

and then deal with the exception in some way?

Aidy






---
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] report failure question?

2006-09-21 Thread Bill Agee
Are you using Test::Unit::Reporter?  It could be useful to put
together a small demo script that will demonstrate the problem.

So it sounds like you have a test that is expected to fail, and it's
not failing?  (Or is it that the script is behaving properly, but the
report does not have the correct result for the test?)

Which assert method are you using?  Might be something that could be
easily fixed...


On 9/21/06, Luke [EMAIL PROTECTED] wrote:
 I have test, I use assert method and in the end I generate report for this
 test case, the problem is that when I put 'rescue=e' statement I catch
 exception and report shows that test pass, if I remove rescue block, then in
 report I have error in appropriate colum,  but still when test is suppose to
 fail, failure column in report is empty, can you tell me how can I get
 information when test was done and when fail and present it in report? now
 I put log to file if assert fails

 Luke

 ___
 Wtr-general mailing list
 Wtr-general@rubyforge.org
 http://rubyforge.org/mailman/listinfo/wtr-general


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general