Bug 55998 - HTTP recording – Replacing port value by user defined variable does not work
Summary: HTTP recording – Replacing port value by user defined variable does not work
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.11
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-13 13:12 UTC by Libor Kotoun
Modified: 2014-02-09 11:27 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Libor Kotoun 2014-01-13 13:12:12 UTC
I prepare user-defined variables in Test Plan for server name and port number. Then I record script. Replacing server name during recording is OK.
Since JMeter version 1.7 is not replaced port number in HTTP Requests. At version 1.6 and previous was OK. 
Replacing port number in HTTP Header Managers is OK.

Example:
User defined variables
sever   myexample
port	8048

Recorded HTTP Request     
Server name or IP: ${server}  Port Number: 8048

Recorded HTTP Header Manager
Referer:     http://${server}:${port}/TACR/
Comment 1 Philippe Mouawad 2014-02-08 21:44:32 UTC
Issue is due to port being an IntegerProperty.
ValueReplacer#replaceValues works only on StringProperty and MultiProperty.
Comment 2 Philippe Mouawad 2014-02-09 11:27:42 UTC
Date: Sun Feb  9 11:26:51 2014
New Revision: 1566275

URL: http://svn.apache.org/r1566275
Log:
Bug 55998 - HTTP recording – Replacing port value by user defined variable does not work
Bugzilla Id: 55998

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/util/ValueReplacer.java
    jmeter/trunk/xdocs/changes.xml