Closed asfimport closed 20 years ago
Martin Ramshaw (migrated from Bugzilla): I have confirmed this report, but it doesn't seem to be a bug.
If someone can convince me that this is incorrect behaviour, I'd be prepared to look into it.
Brandon Ulrich (migrated from Bugzilla): We use a large number of single-digit user variables in our tests; you can image the translated results when we add recorded pages with large number of date and numeric parameters. Our work-around is to create a new Test Plan, record the additional units, and then cut and paste them into the original plan.
If this is intended behavior, instead of a bug, Í'm fine with changing this to an enhancement request that would allow us to deactivate this feature while recording scripts.
It seems there are good reasons to leave it there: The following tip from Jordi to a user recording SSL <jordi> A usually practical way is to:
1/ Create a User Defined Variable in the Test Plan with value "http". Name it, say, "protocol".
2/ Record your script. The proxy will cleverly (sometimes too cleverly) replace every occurence of "http" with ${protocol}.
3/ Change the variable value to https.
4/ Run the script. </jordi>
Jordi Salvat i Alabart (migrated from Bugzilla): I don't think this is a bug. Instead, we should: 1/ Provide a configuration element to define variables. 2/ Have the proxy use one such element placed directly within the proxy element instead of the variables in the test plan.
1/ would have the additional advantage of allowing selecting different sets of variables by enabling/disabling such components.
Converting this to an enhancement request for these features. Summary was: HTTPProxyServer inserts user-defined Variables instead of actual values
Jordi Salvat i Alabart (migrated from Bugzilla): I did and documented this a (long) while ago. Check latest CVS code or a nightly build.
Brandon Ulrich (Bug 22788): User-defined variables are being automatically inserted into recorded proxy requests when the value from the proxy matches a user-defined value. For example, if I have a value of "8" the port "80" would be recorded as "${myVal} 0".
To reproduce:
OS: Windows XP