Forum Discussion
For namemapping, you shouldn't need to capture the tokens. Simply replace the variable parts of the URL string in your namemapping with an asterisk (*) like http://localhost:4000/main?access=*&sessionid=*.
For that matter, you might be able to just replace everything after the ? with the asterisk.
- mgroen28 years agoSuper Contributor
tristaanogre wrote:For namemapping, you shouldn't need to capture the tokens. Simply replace the variable parts of the URL string in your namemapping with an asterisk (*) like http://localhost:4000/main?access=*&sessionid=*.
For that matter, you might be able to just replace everything after the ? with the asterisk.
Hi tristaanogre,
thanks for the tip.
Suppose I want to 'catch' the values for the accesstoken, and sessionId, and save them in a variable. How to do that?
- tristaanogre8 years agoEsteemed Contributor
You'll have to write some sort of function to parse the URL to grab those values, I'd imagine, using some combination of aqString methods to find the segments and pull them out. I think I recall somewhere that those values might be saved as properties or attributes on the page object itself but I can't guarentee the veracity of that. Because they are such variable values and I haven't had need to use them in functional testing, I can't help much with specifics on this. Sorry. :(
- shankar_r8 years agoCommunity Hero
Hi,
This https://community.smartbear.com/t5/TestComplete-Functional-Web/How-do-I-access-security-code-from-email-web-mail/m-p/135050#M29052 may use full for you.
Let me know if you are not able to capture.
Related Content
Recent Discussions
- 2 days agoGane195