Clicking an email verification link using jmeter -
i have test plan in jmeter following:
uses mail reader sampler retrieve email gmail account.
uses regular expression extractor grab verify email link , set variable
1-3 work fine problem having when verify mail link captures protocol https:// once try using http sampler link http:/"https:followed url.
how can either exclude http: protocol regular expression or there sampler can use click link
response parsing: href="https://qa4.iqnavigator.com/routing/ytmzythjyzctnjiyny00mwrmltlhogitotdinwvjmdy1ywfm">
the regular expression using: "([^"]+?)" , captured: https://qa4.company.com/routing/ytmzythjyzctnjiyny00mwrmltlhogitotdinwvjmdy1ywfm
any ideas
i believe solution issue careful use of character groupings , jmeter's "template" feature of regular expression extractor.
for example, regex:
https://([^/]*)/
using template:
$1$
this match urls, not include "https://" part or path after host, in actual variable stored jmeter. store host itself, in example "qa4.iqnavigator.com".
another example, lets wanted extract routing id, aren't sure http or https:
href=".*://qa4.iqnavigator.com/routing/([^"]*)" template: $1$
for more details, check out answer.
let me know if can try clarify further.
Comments
Post a Comment