SilkTest Question:
Download Questions PDF

I am trying to run a remote application in Windows 2003. But everytime time I am getting the following error:

Answer:

I'm trying to run a remote application in Windows 2003. But everytime time I'm getting the following error:
"*** Error: Bad channel to agent call" .
My host and agent machine is running on Windows 2003. I have changed the network option for both Host and Agent machine as TCP/IP and port no 2965. Along with that, I have also changed the Agent Name in the Runtime options by Agent machine IP address and network as TCP/IP. Along with that I have also enabled all the relevent extensions.
If any one can let me know whether I have missed out anything in the configuration or do I need to do something else also. Also has any one came accross this kind of error (marked in red) previously.


Trying to use remote recording and play facility provided by Silk, for the same, agentname/ipaddress of the system, where remote agent needs to be used, should be entrered in the host machine's runtime options.
Use Connect () to connect to the target machine....After you connect to the target, then you don't need the agent at m/c where host is installed....So at host place, agent is local or any thing else doesn't matter....If you don't use Connect (), then you have to mention the remote agent name at the host runtime option...[I think so but I haven't tried this]....Now let us come to remote machine....Here even if you don't have the host installed (only Agent installed) your script would run....The host at remote machine is not used and therefore the settings made on the remote host are irrelevant...Only remote agent is used for interaction and the network should be enabled at remote agent...
If you use "local" in agent-options, recording and playback would be done locally i.e silk host would use local agent to do this thing. But if you use "ipaddress:port", the same would instruct silk-host to use remote agent for record and playback..or simply any activity.
Here is a sample code which runs successfully invokes the notepad at remote m/c [192.168.240.102 <http://192.168.240.102> ] and closes it
[ ] const wMainWindow = Notepad
[ ]
[-] window MainWin Notepad
[ ] tag "*Notepad*"
[ ]
[ ] const sCmdLine = "C:WINNTsystem32NOTEPAD.EXE"
[ ]
[-] main ()
[ ]
[ ] Connect ("192.168.240.102 ")
[ ]
[ ] Notepad.Invoke ()
[ ] Sleep (2)
[ ]
[-] if Notepad.Exists ()
[ ] Print ("Notepad invoked at remote")
[ ] Notepad.SetActive ()
[ ] Notepad.TypeKeys ("<Alt-F4>")
[ ] Sleep (2)
[-] else
[ ] LogError ("Notepad not invoked")

Download SilkTest Interview Questions And Answers PDF

Previous QuestionNext Question
Need to use the relative paths in my SilkTest Project. How to change the absolute paths to relative paths?How to down load latest silk test trial version?