IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
The following code illustrates how SilkTest can spawn threads to test different webpages on remote machines within one testcase.
[-] LoadURL1 () [ ] SetMachine ("machine1") [ ] Browser.LoadPage ("www.mydomain.com") [ ] [-] LoadURL2 () [ ] SetMachine ("machine2") [ ] Browser.LoadPage ("www.google.com") [ ] [ ] [-] multitestcase spawnexample () [ ] [ ] HMACHINE host_machine [ ] HMACHINE remote_machine [ ] STRING sHost = "machine1" [ ] STRING sRemote = "machine2" [ ] [ ] host_machine = Connect (sHost) [ ] remote_machine = Connect (sRemote) [ ] [-] spawn [ ] LoadURL1 () [-] spawn [ ] LoadURL2 () [ ] rendezvous [ ] [ ] Disconnect (sHost) [ ] Disconnect (sRemote) [ ]