kcarpent
16 years agoOccasional Contributor
Cannot get a keyword test that runs scripts to successfully convert to a script
I've made some scripts that work well when I run them from a keyword test using "run script routine". The problem is that I need to run some conditionally. I was going to try this using an if statement, but I cannot get the correct conditions in the keyword test. I can write the if statement myself, I think, but when I select "convert to script" on the keyword test containing the "run script routines", the script doesn't work. Unfortunately, my scripting isn't great and I am not sure how to call the scripts correctly, which is why I am trying to convert that particular keyword test to script. It looks like it should work to me, but instead it gives the following error:
"An exception occurred in the script unit at line X: Microsoft JScript runtime error Object Expected"
Here is the code that it generates:
Test3()
The names of these are correct, so I am not sure what the problem is. If anyone can tell me any way to get around this, I would appreciate it. Thanks.
"An exception occurred in the script unit at line X: Microsoft JScript runtime error Object Expected"
Here is the code that it generates:
function Test3()
Test3()
{
Login();
SWA();
}
The names of these are correct, so I am not sure what the problem is. If anyone can tell me any way to get around this, I would appreciate it. Thanks.