I wud like to write a automated functional script for web application using Rational Robot tool. I have written the script but facing some problem while executing it.
Problem Description :
I have following three files;
"Create an Organization" and "Login" script files and "global.sbh" SQABasic Header file.
"Create..." script file calls the "Login" script file to logged in to system (or say website). After executing "Login" script a check has been put in the script to check whether user has been successfully logged in or not.
"Login" script has the "isLoggedIN" function and verification point to check whether user is successfull logged in or not. Here "Login" script has the included SQABasic Header File for the username and password. If the user is successfully logged in to the website then the global variable "contPro" in Header file has been to set to '1' otherwise '0'.
"Create.." script use "contPro" variable to verify the user logged in status. Here also SQABasic Header is included for the "contPro" variable. My problem is if run the "Creat.." script then i have never found the "contPro" variable value updated it always shows the default value of integer irrespective of the Login verification result.
But this is working fine with independent "Login" script. "contPro" value is updated with verification result.
I don't know what the reason being is?
Might be the twice inclusion of same header file (once in Login and then in Create). Could anyone from u can help me out from this situation.
I also once faced this problem. But my requirement was that I need to access the value of a global variable in many scripts. I tried with declaraing the variable as Global and updating its value. But that didn't worked. So I used a notepad file for the same.
"A highly advanced bug is indistinguishable from a feature."
A highly advanced bug is indistinguishable from a feature.
I am agree with you that txt file will fullfill my requirements but generating one txt file with each script it seems very unrealistic. Have u explored to much on this that global variable won't work here? If yes then i'll use ur idea.