By default, a test case recorded against a website will test the same website. The Host remapping feature allows to re-target the host, which was used to record a test case, to a host which should be load tested. If you need to re-use a test case for another website, the host name or IP address and its port can be changed. For example, a test case originally recorded against a production server has to run against a test server. 


Path remapping

The application path can also be remapped. For example, www.developlment.com/dev can be remapped to www.production.com/prod 


Port remapping allows recording a test case against the host listening on the port other than 80 (or 443 for HTTPS) and then targeting a different port during load tests. If the port is not specified, then HTTP will use port 80 and HTTPS will use port 443

To configure host/port remapping, follow these steps:

Standalone version

1. In StresStimulus Main Menu -> Edit -> Hosts/Content-Types, select Remap Hosts


Alternatively, it can be accessed from the toolbar in the Test Profile workflow tree node. 

2. The Host Remapping dialog will appear

3. Make sure that the Enable Host Remapping is checked

4. On every row, enter a new host and the recorded host. Optionally add the new port and the original port to the host: {New Host}:{New Port}/{New Path} {Old Host}:{Old Port}/{Old Path}

Use host names or IP addresses. For example, 111.222.33.44:8888 testedwebsite.com

5. Click Save.


The hostname can be in the form of full URL notation such as http://{host}:{port}/{path}

Remap domains

For example, imagine a test with the following hostnames: sub1.dev.net, sub2.dev.net, sub3.dev.net, and so on. In order to remap the domain dev.net to prod.net you can add a new host remap record for every subdomain:

sub1.dev.net sub1.pro.net

sub2.dev.net sub2.pro.net

sub3.dev.net sub3.pro.net

...

Or you can use a wildcard as follows:

*.dev.net *.pro.net

Note

The wildcard can be in the hostname and in the pathname, for example: *.myhost.com/*/root/

Add-on version:

1. In Fiddler Main Menu -> StresStimulus -> Hosts, select Remap Hosts

2. The Host Remapping dialog will appear

3. Make sure that the Enable Host Remapping is checked;

4. On every line, enter a new host and the original host, separated by at least one whitespace character; optionally add the new port and the original port to the host: {New Host}:{New Port}/{New Path} {Old Host}:{Old Port}/{Old Path}

Use host names or IP addresses. For example, 111.222.33.44:8888 testedwebsite.com

5. Click Save.




  • No labels