10-05-2011, 05:41 PM
Hi Uma,
1) You cannot Pass parameter to Function action when you are calling it from Login action as the parameter can be sent only after the completion of Login action.
2) Try to call Login, Function & Logout in a single Master script.
In 'Login' action
Go to Edit -> Action -> Action Properties -> Parameters - Declare your output parameter "i" here and then in your code assign value
Parameter("i")=sysenv
Now in 'Function' Action Go to Edit -> Action -> Action Properties -> Parameters - Declare an input parameter with some name say 'env' and then in your code assign value
env1=Parameter("env")
3) Declare your actions like this in Master script:
RunAction "Login", oneIteration,val1
RunAction "functions", oneIteration,val1 (Note this should be the same variable which you are returning in the above action i.e. Login)
Hope this would help
1) You cannot Pass parameter to Function action when you are calling it from Login action as the parameter can be sent only after the completion of Login action.
2) Try to call Login, Function & Logout in a single Master script.
In 'Login' action
Go to Edit -> Action -> Action Properties -> Parameters - Declare your output parameter "i" here and then in your code assign value
Parameter("i")=sysenv
Now in 'Function' Action Go to Edit -> Action -> Action Properties -> Parameters - Declare an input parameter with some name say 'env' and then in your code assign value
env1=Parameter("env")
3) Declare your actions like this in Master script:
RunAction "Login", oneIteration,val1
RunAction "functions", oneIteration,val1 (Note this should be the same variable which you are returning in the above action i.e. Login)
Hope this would help