According to the doc here, arrow / docs / arrow_cookbook / arrow_in-depth.rst , starting the proxy server is required for following redirects. I have done that, and can see no other Arrow requirements for following redirects. However, as soon as my test page redirects, the test exits completely. But I need to do some dom interaction on the destination redirect page, and then initiate a client-side redirect there (it's a log-in page that I need to fill in, and then hit 'submit' and move to my next test page).
I have the functional/integration test in the cookbook example working fine on my box. Although my test is simple, it involves a redirect. The redirect is server-initiated, but that seems to not matter in this case, as clicking on a link causes the issue as well. Also https vs. http seems to not matter.
The Command
arrow --startProxyServer=true test_descriptor.json
~ or ~
arrow test_descriptor.json
test_decriptor.json :
[
{
"settings": [ "master" ],
"name" : "page-load",
"startProxyServer" : true,
"commonlib" : "./test-lib.js",
"config" :{
"baseUrl" : "https://foo.com"
},
"dataprovider" : {
"int" : {
"params" : {
"test" : "test-page-load-int.js",
"page" : "$$config.baseUrl$$/bar"
},
"group" : "smoke"
}
}
},
{
"settings": [ "environment:int" ]
}
]
The Output
Foos-MacBook-Pro:bat-page-load test$ arrow --startProxyServer=true test_descriptor.json
[2013-10-04 18:27:16.140] [INFO] ArrowSetup - Glob result: test_descriptor.json
[2013-10-04 18:27:16.487] [INFO] TestExecutor - Total test sessions: 1
[2013-10-04 18:27:16.487] [INFO] TestSession - Running test: int
[2013-10-04 18:27:16.488] [INFO] TestSession - Using selenium driver
[2013-10-04 18:27:16.506] [INFO] SeleniumDriver - Connecting to selenium: http://localhost:4444/wd/hub, browser: firefox, version: undefined
[2013-10-04 18:27:16.560] [INFO] Arrow - Loading controller: /usr/local/lib/node_modules/yahoo-arrow/lib/controller/default
[2013-10-04 18:27:16.562] [INFO] Arrow - Executing controller: /usr/local/lib/node_modules/yahoo-arrow/lib/controller/default
[2013-10-04 18:27:18.648] [INFO] SeleniumDriver - Loading dependency: ./test-lib.js
[2013-10-04 18:27:18.652] [INFO] SeleniumDriver - Loading dependency: /usr/local/lib/node_modules/yahoo-arrow/lib/common/yui-arrow.js
[2013-10-04 18:27:18.653] [INFO] SeleniumDriver - Loading test: test-page-load-int.js from
[2013-10-04 18:27:18.654] [INFO] SeleniumDriver - Loading page: https://foo.corp.bar.com/bat
[2013-10-04 18:27:22.302] [INFO] TestExecutor - Time taken to run - int is::5.82
[2013-10-04 18:27:22.303] [INFO] TestExecutor - Time taken to run descriptor-test_descriptor.json = 5.82
[2013-10-04 18:27:22.303] [INFO] TestExecutor - All tests over for descriptor:test_descriptor.json
Test Report Summary for the descriptor::test_descriptor.json
Total Number of Executed Tests: 1
Total Number of Passed Tests: 0
Total Number of Failed Tests: 1
Total Number of Skipped Tests: 0
Total Test Execution Time Inside Browser: 0.00 seconds
Total Test Execution Time:5.82 seconds
List of failed descriptors
Failed Descriptor Path : test_descriptor.json
Total Number of Failed Tests : 1
Foos-MacBook-Pro:bat-page-load test$