SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How do I tell silk to invoke a browser and run the test case in a remote machine?

    Can I use the partner command to do this via command line?

    I want my testcase to be running on another comp so I can continue looking at other stuff instead of waiting for several minutes for the test case to finish.

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Northern Colorado
    Posts
    149
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    Is the agent running on the remote machine? Is TCP/IP networking enabled in the agent?
    Dan Brandow

    Don't trust, just verify. - Stephen D. Levitt

  3. #3
    Member
    Join Date
    Oct 2005
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    yes, I have the agent running on both host and the target.

    I also modifed Options->Runtime and set
    Agent Name = (local)
    Network = TCP/IP

    on both machines.

    I dont think "Agent Name" matters since I am using Connect().
    But please let me know if anyone has any idea why I get this message.

  4. #4
    Senior Member
    Join Date
    Oct 2005
    Location
    Northern Colorado
    Posts
    149
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    Okay, good. You most likely will not need the agent running on the host, but once you get the basics running you will want to read up on hMachine handles and their use to drive agent and host processes...

    But back to your initial quandary: the most likely culprit are network firewalls running on the host, the remote machine, or perhaps between them depending on how your network is designed.

    You need to make sure the firewall is configured to let through traffic on your TCP port (2965 is the default I believe -- check the running agent). Depending on the operating system(s) involved it may be possible to configure by executable instead of port. "SilkTest Agent" and "Silk Meter" are the two that will need to be configured.

    Hope that helps.
    Dan Brandow

    Don't trust, just verify. - Stephen D. Levitt

  5. #5
    Member
    Join Date
    Oct 2005
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    I tried this:

    [-] testcase MyTestcase ()
    [ ] Connect ("targetmachine")
    [ ] // Call first testcase
    [ ] //DoTest1 ()
    [ ] // Call second testcase
    [ ] //DoTest2 ()
    [ ] Disconnect ("targetmachine")


    but I keep getting:
    *** Error: Unable to connect to machine 'targetmachine' -- Socket connection refused

  6. #6
    Member
    Join Date
    Oct 2005
    Posts
    47
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    Of course, i used a valid machine name for "targetmachine" [img]images/icons/smile.gif[/img]

  7. #7
    Junior Member
    Join Date
    Dec 2005
    Location
    Portland, Oregon
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    As stated above, make sure your agent is running on the remote machine.
    Options/Runtime/Agent set to none, Network=tcp/ip
    [ ] String sMachine = "remotebox" //Windows XP
    [-] testcase MkDirs() appstate none
    [ ] Connect(sMachine)
    [ ] CreateDirsIfNotExist(sMachine)
    [ ] CreateEmptyFiles(sMachine)
    [ ] Disconnect(sMachine)
    [-] CreateDirsIfNotExist(String sMachine)
    [ ] SetMachine(sMachine)
    [ ] do
    []do stuff here
    [ ] except
    [ ] Disconnect(sMachine)
    [-] CreateEmptyFiles(String sMachine)
    [ ] SetMachine(sMachine)
    [ ] do
    [ ]do stuff here too
    [ ] except
    [ ] Disconnect(sMachine)
    If you want to do stuff both on the remote and local machine, nothing changes except the name of sMachine. Even though you want to run testcases locally too, keep the option/runtime/agent to none and launch the local agent separately.

  8. #8
    Junior Member
    Join Date
    Dec 2005
    Location
    Portland, Oregon
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    Also, if you want to invoke a browser from action based on a remote machine, you may have problems using DefaultBaseState directly since defaultBaseState gets called before your testcase. If so, try this technique:
    [-] appstate MyAppState() basedon DefaultBaseState
    [ ] Explorer.Navigate ("http://www.google.com")
    [ ]
    [-] testcase setupConnection() appstate none
    [ ] connect("someMachine")
    [ ] SetAppState ("MyAppState")
    [ ] Google.SetActive( )
    [ ] Google.MoreĽ.SetText("Segue")

  9. #9
    Senior Member
    Join Date
    Dec 2001
    Location
    Boston,MA, USA
    Posts
    162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How do I tell silk to invoke a browser and run the test case in a remote machine?

    Check for the firewall on the "remote machine" as well if it is a "Windows XP" system. I have had problems in the past with the firewall turned on on a XP system.
    -Shree

    *************************************************
    The more I learn, the more I realize how little I know!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:06 AM.

Copyright BetaSoft Inc.