You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Amit Kumar <am...@gmail.com> on 2016/09/14 15:09:34 UTC

How to record a script for specific domain URLs only?

Hi,

I am trying to capture a script using *HTTP(S) Test Script Recorder* in
*JMeter3.0*. When I start start capturing, URLs from other domains for ex.
download.cdn.mozilla.net are also getting captured. I don't want these URLs
to be recorded, I want to record URLs for a specific domain only. So, how
to achieve this in JMeter3.0?

*Note:* I tried using *URL Patters to Exclude* but as I can not predict the
other domain URLs, I don't want to use this option. I also tried *URL
Patters to Include* by specifying a specific domain i.e.
^((?!DOMAINNAME).)*$, but it still recording the other domain URLs.

-- 
Thanks and Regards,
Amit

Re: How to record a script for specific domain URLs only?

Posted by SanderW <sa...@performancearchitecten.nl>.
rhintintin wrote
> In the URL Patterns to Include include I use .*
/
> domainname
/
> .* and that works fine

I would not recommend the first wildcard, because sites like
google-analytics and log.optimizely sometimes contain your domainname in the
GET requests.
I use: www.domainname.nl.* as URL Patterns to Include (so only a wildcard at
the end)

Examples:
/https://www.google-analytics.com/collect?v=1&_v=j46&aip=1&a=1610984486&t=event&ni=1&_s=1&dl=https%3A%2F%2F*www.domainname.nl*%2F&ul=nl&de=UTF-8&dt=xxx%20van%20xxx&sd=24-bit&sr=1920x1080&vp=1485x821&je=1&fl=19.0%20r0&ec=vraag%20en%20antwoord&ea=weergaves&el=&_u=QACAAAABI~&jid=&cid=776865587.1473669248&tid=UA-2727515-59&gtm=GTM-P2JD7J&cd1=extern&z=2105832441

https://2101232013.log.optimizely.com/event?a=2101232013&d=2101232013&y=true&src=js&s2098172253=false&s2102006020=ff&s2110354197=direct&tsent=1473930512.899&n=https%3A%2F%2F*www.domainname.nl*%2F&u=oeu1473669248138r0.2539600298748447&wxhr=true&time=1473930512.899&f=6508780544&g=&cx2=2c633553/



--
View this message in context: http://jmeter.512774.n5.nabble.com/How-to-record-a-script-for-specific-domain-URLs-only-tp5724775p5724779.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org