sidewinderlabs / backplanejs

Other
12 stars 3 forks source link

Functional tests fail when browser parameter contains a full path #99

Closed backplane-import closed 12 years ago

backplane-import commented 12 years ago

Imported from backplanejs Google Code issue 99.

Reporter markbirbeck
Date 31 Aug 2010 11:58:49 AM UTC

What steps will reproduce the problem?

  1. Set 'selenium-rc.browsers' in 'my.ant.properties' to a browser and path, such as: '*firefox3 /Applications/Firefox3.6.app/Contents/MacOS/firefox-bin'.
  2. Run the functional tests with ant functional-test.

What is the expected output? What do you see instead? The functional tests should be run and the message 'Build successful' should be output.

Instead the test server fails to load and the build is aborted.


Owner set to markbirbeck

Priority: Medium Type: Defect

backplane-import commented 12 years ago

Comment by markbirbeck on 31 Aug 2010 12:04:10 PM UTC

The problem is that the URL for the functional test report file (in selenium-rc.xml) is constructed by using the 'outputDir' and the 'browser' parameters, like this: {{{ @{outputDir}/@{browser}-results.html }}} This is fine if an environment variable is set for the browser being used, because the 'selenium-rc.browsers' variable will then usually be set to '*firefox3' (i.e., with no path). But when using the full browser path Selenium fails to create the report file, causing the tests to abort.

backplane-import commented 12 years ago

Comment by markbirbeck on 31 Aug 2010 12:07:10 PM UTC

This issue was closed by revision bcac80d810a19acd20a17a6aaf28c02d52c3b0f4 (originally 5c1106ac7b).


Updates

Ticket status set to Fixed