*Issue:* I am using code I grabbed from another post, which I have
included that should kick off my ruby scripts in consecutive order. I have
two ruby test scripts (TestResearch.rb and TestResearch2.rb). I have a
main script (mainscript.rb). There are two issues when I kick off the
mainscript file that should then kick off my two ruby test script files:
1. Why do I have to put the full path for my two test files? It doesn't
recognize the files even though I am running my main script from the same
location as the test files.
2. Why does TestResearch2.rb kick off before TestResearch.rb is finished?
What in TestResearch.rb indicates to the main script that it has finished
processing?
*MainScript.rb*
require 'I:\Notes\Automation\Scripts\TestResearch'
require 'I:\Notes\Automation\Scripts\TestResearch2'
class TS_MyTests
def setup
#CBrowser.openMyBrowser()
end
def teardown
#CBrowser.closeMyBrowser()
Test::Unit::UI::Reporter.run(TS_MyTests.suite,
'I:/Notes/Automation/Results',:html)
end
def self.suite
#Test::Unit::UI::Console:: TestRunner.new(suite).start
suite = Test::Unit::TestSuite.new("All tests")
suite << TC_TestResearch.suite
suite << TC_TestResearch2.suite
#Test::Unit::UI::Console:: TestRunner.new(suite).start
FileUtils.mkdir_p 'I:/Notes/Automation/Results/report'
#Test::Unit::UI::Reporter.run(TS_MyTests.suite, 'C:/Program
Files/Watir/examples/test_cases/report',:html)
return suite
end
end
--
--
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/d/optout.