Currently, I’m running each my Selenium Ruby Webdriver script (*.rb) on Ruby command prompt window with the syntax, ex: ruby test.rb. It works well.
However, I also have some other scripts and now I want to run all scripts once instead of calling ruby test1.rb, then wait for this script done, then continue to run: ruby test2.rb…..then, ruby test3.rb…..
Anybody please guide me a way to run all scripts I created at a time? Thanks so much.
You can use the rake
gem, for this you need to create a file namedrakefile.rb, and paste the below content:Now call
rakein your terminal, you should be good.