
|
If you were logged in you would be able to see more operations.
|
|
WebTest
Created: 10/Dec/07 18:55:16
Updated: 11/Dec/07 18:06:13
|
|
| Affects Version/s: |
2.5
|
| Fix Version/s: |
2.6
|
|
|
Environment:
|
Mac OS 10.4.11 on Intel Mac
ant -version:
Apache Ant version 1.6.5 compiled on July 2 2006
java -version:
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
|
|
Using Build r1641 if there are Hosts and Domains specified in the Proxy bypass settings section of the system preferences, the build of the sample project will fail with a parsing error. The value of http.nonProxyHosts (reference WT-271) contains the host/domain name specified in the System Preferences and a "global" value which is the named value preceded with an "*". The asterisk is causing the parsing error. See below:
[null] INFO (com.canoo.webtest.engine.Configuration) - Surfing with browser 4.0 (compatible; MSIE 6.0; Windows 98)
[null] INFO (com.canoo.webtest.engine.Configuration) - Configuring proxy from http.proxyHost* system properties: www-proxy.us.oracle.com:80
[null] INFO (com.canoo.webtest.engine.Configuration) - Configuring proxy from http.nonProxyHosts system property: testlab.intranetsolutions.com|*.testlab.intranetsolutions.com
BUILD FAILED
/Applications/webtest/build_r1641/webtest.xml:163: The following error occurred while executing this line:
/Applications/webtest/yetanotherProject/tests/allTests.xml:5: The following error occurred while executing this line:
/Applications/webtest/yetanotherProject/tests/googleWebTest.xml:9: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*.testlab.intranetsolutions.com
^
|
I should have been clearer. The issue isn't with the initial creation of the project, but is with attempting to run the sample tests using the "ant" command from within the created test directory. Sorry for the confusion, I'm rather new to WebTest.
Fixed in build 1645.
The problem wasn't specific to Mac: the patterns allowed in Ant's setproxy task are not regex patterns and should be converted to valid regular expression.
|
|