answer found by myself to question 1. create a module and then load it.
module test
@hello="Hello, World"
def self.hello
return @hello
end
def self.hello=(val)
@hello=val;
end
end
Then load File.dirname(__FILE__) + '/config.rb'
On Friday, June 21, 2013 11:14:29 AM UTC-4, He Bing Lin wrote:
>
> Question 1
> I want to know if i can include or require a script at the top of all the
> test file. Because i want to have a global variable which equals to a csv
> file name. that csv needs to read in. so i dont have to change all the file
> when the file name change. all i have to do is changing the included file.
> Question 2
> Is testwise allow to run specific test case? Lets say i have a csv that
> has story" test hyperlink" and then read in the csv and run only that test
> case.
>
> Thank you
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.