Forum Discussion

aagrawal_1's avatar
aagrawal_1
New Contributor
13 years ago

How to pass parameter in remote call

Hi,


How i can pass parameter in remote call?



Suppose my code is like


Sub Test1(para1)

'execute remote call

'add host (i want to execute this test in machine2)

'add job

'taskobj.test = Test1 (Is there any way to pass parameter para1 here?)

End Sub


Sub MainTest

Test1 para1

End Sub



In above example, when i run "MainTest" from "machine1" then it will give call to "Test1" with parameter "para1". 

"Test1" will execute and it will give remote call to "machine2".

Now same test "Test1" will execute on "machine2".

Here i want, "Test1" will execute with parameter "para1" on "machine2".



-abhi

1 Reply

  • Hi,



    There's no way to pass parameters to routines which you call via network suite tasks. Such routines must have no parameters. To make your parameter accessible to the target routine, you can pass it via a network suite variable.