I am newbie to ruby,
I have one doubt pertaining to system call and starting my server.
I use the system call --> system(“D:\ruby\bin\selenium.cmd”)
This starts a server followed by which i would be calling all the
methods in my code.
But until the first part of system call ends, i am not able to go to
successive methods.
I cant stop the server and then start calling other methods since all
methods require server to be up & running.
My question is , Can i start the server and keep it active plus it comes
out of the system call and start executing other methods respectively.
Let me know if you require any more information on this issue.
methods require server to be up & running.
My question is , Can i start the server and keep it active plus it comes
out of the system call and start executing other methods respectively.
Let me know if you require any more information on this issue.
Ruby’s threads are green threads and hence are blocked during blocking
system calls.
Try using ‘cmd /c “start D:\ruby\bin\selenium.cmd”’
methods require server to be up & running.
My question is , Can i start the server and keep it active plus it comes
out of the system call and start executing other methods respectively.
Let me know if you require any more information on this issue.
Ruby’s threads are green threads and hence are blocked during blocking
system calls.
Try using ‘cmd /c “start D:\ruby\bin\selenium.cmd”’
Cheers
robert
I have tried to elaborate on what i was looking for : hope this is clear
Snippet of my code(ruby):
system(“D:\ruby\bin\selenium.cmd”) → This opens a batch file which
runs selenium SERVER on which i need to run the below given methods!
#Creating an Object to call Methods → Here I am creating an object
from which i intend calling methods which exists another class file
masterload = MasterLoad.new()
Start cvis on the given URL → Method 1 …calling the
#Select a Client → Method 3… I have multiple methods
like this
masterload.cvis_selectClient(clientName)
Question1 : All the methods mentioned requires selenium
server(system(“D:\ruby\bin\selenium.cmd”)) to be running, selenium
server invokes an browser on which these methods are executed.
Problem i am facing is once selenium server starts, how does it
go to Method1…as far as my little knowledge is concern until it comes
out of the system method, it doesnt go to the second method.
What i am looking for is I want to start selenium server plus
run all the methods.
Question1 : All the methods mentioned requires selenium
server(system(“D:\ruby\bin\selenium.cmd”)) to be running, selenium
server invokes an browser on which these methods are executed.
Problem i am facing is once selenium server starts, how does it
go to Method1…as far as my little knowledge is concern until it comes
out of the system method, it doesnt go to the second method.
What i am looking for is I want to start selenium server plus
run all the methods.
I have no idea what a selenium server is nor how one “invokes methods
on a browser”. I am afraid, you will have to disclose more detail of
the architecture of your app and what you intend to do.
Kind regards
robert
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.