I'm not sure what your question is. Do you need help doing this? Or do you have a method and want to compare yours with others that are possibly more "elegant"?

This can be done very simply. Create your test methods using "def". Place them in testexecution.rb. Then put "require testexecution" in the scripts that use these methods. You can also use Modules if you want. They are arguably more "elegant" but that really depends on your situation.

Bret

On 1/24/06, Paatsch, Bernd <[EMAIL PROTECTED]> wrote:

Hello,

I am new to ruby and watir, so this might be a very trivial question.

Is there a elegant solution to have a modular test script approach?

I have blocks of code that will be always the same for the web-site I am going to test, like "login", "search", "logout", etc. So my idea is to put those modules into separate files and then call them from a script called "testExecution.rb". What is your solution?

Thanks.


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to