<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>StresStimulus Forum - SUPPORT QUESTIONS - Replacing the Path - Messages</title>
<link>https://www.stresstimulus.com/forum/replacing-the-path-551</link>
<description>StresStimulus Forum - SUPPORT QUESTIONS - Replacing the Path - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Fri, 30 Jun 2017 10:20:04 GMT</pubDate>
<lastBuildDate>Fri, 30 Jun 2017 10:20:04 GMT</lastBuildDate>
<item>
<link>https://www.stresstimulus.com/forum/replacing-the-path-551</link>
<title>Message from George @StresStimulus</title>
<description><![CDATA[Let me make sure I understand your situation. You have an application that has the following URL: http(s)://[host]/[vpath]/[file] and you want to change the [host] and [path] for every request. <br/>To change the recorded [host] just use host remapping feature which you mentioned. <br/>To change the recorded [path], follow these steps : <br/><li>Create a new scriptable variable and call it, let say VirtualPath. <a href="http://support.stresstimulus.com/display/doc46/Internal+Scriptable+Variables" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc46/Internal+Scriptable+Variables</a><br/></li><li> In the GetValue method replace throw new NotImplemenetedException() with return “[newPath]”; where [newPath] is the name of your new path. This can always be edited later when the [newPath] changes.<br/></li><li>Next you need to parameterize all requests and change /[vpath]/ to /{{newPath}}/ In the test case tree right click on the first request and select Create Parameter.<br/></li><li>Switch to Parameterization Editor <a href="http://support.stresstimulus.com/display/doc46/Parameterization+Editor" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc46/Parameterization+Editor</a><br/></li><li>Hit Ctrl+F to bring up the Find/Replace dialog <a href="http://support.stresstimulus.com/display/doc46/Creating+Multiple+Parameters+from+Editors" target="_blank" rel="nofollow">http://support.stresstimulus.com/display/doc46/Creating+Multiple+Parameters+from+Editors</a><br/></li><li>In the find what textbox type: /[vpath]/<br/></li><li>In the replace with type: /{{newPath}}/<br/></li><li>In the search scope select: All Requests<br/></li><li>Hit the Bulk Replace button.<br/></li><br/>Hope this helps.<br/><br/>Keywords: target, remapping, retargeting]]></description>
<pubDate>Fri, 30 Jun 2017 10:20:04 GMT</pubDate>
</item>
<item>
<link>https://www.stresstimulus.com/forum/replacing-the-path-551</link>
<title>Message from shammann</title>
<description><![CDATA[I am new to StresStimulus, trying it out for the first time today. I recorded a bunch of tests against one site, and now I want to point the same tests to another site that has the same codebase, but has a different host and path (i.e. the app directory name in IIS is diifferent). I see how to use Host Remapping to target a different host, but the only way I can see to change the first part of the path in all the requests, is to create a script that returns the new value, and sub it in individually on every single test step. That seems very inefficient, and unworkable over time as a way to accomplish this. Is there some simpler way to do this substitution? Many thanks!]]></description>
<pubDate>Thu, 29 Jun 2017 18:39:14 GMT</pubDate>
</item>
</channel>
</rss>
