04-28-2011, 12:35 PM
Hi again,
I have now succeeded to create the LoginCandidate variable but when I will use it again I don't get the same result when I use it in another activity. Instead for the content of "LoginCandidate" I get an empty login box or "LoginCandidate" as username.
My script for logging in:
My variable to create the variable in my ifrst activity:
The script in the first activity:
Do you have any trick to even get it in my last activity?
I really appreciate your help!
Best regards,
Ann Hagglund, a real beginner
Adecco, Sweden
I have now succeeded to create the LoginCandidate variable but when I will use it again I don't get the same result when I use it in another activity. Instead for the content of "LoginCandidate" I get an empty login box or "LoginCandidate" as username.
My script for logging in:
Code:
Browser("Njord Web Portal - Candidate").Page("Njord Web Portal - Login").WebEdit("username").Set LoginCandidate & "@adecco.com"
My variable to create the variable in my ifrst activity:
Code:
strCandidate ="QTP.Candidate" CandidateNO=randomNumber(0,10000)LoginCandidate=strCandidate & CandidateNO
The script in the first activity:
Code:
Browser("Njord Web Portal - Login").Page("Njord Web Portal - Candidate").WebEdit("ADAPT__EMAIL$Home$EMAIL_ADD").Set LoginCandidate
Do you have any trick to even get it in my last activity?
I really appreciate your help!
Best regards,
Ann Hagglund, a real beginner
Adecco, Sweden