Reputation: 23
I plan on running test scripts from UFT in a Safari browser in a Mac environment. I understand UFT 12.02 supports such functionality through its “Record and Run Settings” where users could select “Apple Safari (on remote Mac computer)” to launch Safari on a remote Mac to run test cases on.
However, is there a way to re-launch the Safari browser remotely after closing it, without having to go through the Record and Run Settings panel? That's one of my test cases.
Just to clarify, I currently use the Systemutil.Run function on Windows to help re-launch browsers automatically after closing them. Based on my understanding and trials, that function is designed to only work on Windows.
Is there a similar function we could use on Mac to re-launch Safari?
Upvotes: 1
Views: 195
Reputation: 114695
SystemUtil.Run
is for running stuff on the local machine, you want to be using RemoteConnection
.
According to the documentation RemoteConnection.Run "safari"
can be used to launch Safari.
I'm not sure what format the Appliation parameter should be (full path or just (thanks to @Stephan for answering this in the comment)."safari"
) since I don't have a Mac at hand. Please update if it works so future seekers will have a full answer.
Upvotes: 0