On Wed, Nov 20, 2013 at 10:42 AM, Chris McMahon <[email protected]>wrote:
> > The first step would be to run some tests under phantomjs. > > I did a little research and found that following tests in the > qa/browsertests repo pass when run under phantomjs locally: > Very cool. https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Running_testssays you can set BROWSER_LABEL but doesn't give the possible values. I guessed at BROWSER_LABEL=phantomjs , and it sort of worked, see below. Is that what you did? Immediately my cursor froze and the Linux out-of-memory handler ran. :-/ I have PhantomJS 1.9.0 installed on Ubuntu 13.10 ~/projects/core/extensions/Flow/tests/browser % BROWSER_LABEL=phantomjs KEEP_BROWSER_OPEN=true MEDIAWIKI_USER=Selenium_user MEDIAWIKI_PASSWORD=.... MEDIAWIKI_URL=http://ee-flow.wmflabs.org/wiki/ bundle exec cucumber Using the default profile... .F----..F---- (::) failed steps (::) Error Message => 'Click failed: TypeError: 'undefined' is not a function (evaluating 'load.bind(this,$node,content,contentFormat)')' caused by Request => {"headers":{"Accept":"application/json","Connection":"close","Content-Length":"2","Content-Type":"application/x-www-form-urlencoded","Host":" 127.0.0.1:8910","User-Agent":"Ruby"},"httpVersion":"1.1","method":"POST","post":"{}","postRaw":"{}","url":"/click","urlParsed":{"anchor":"","query":"","file":"click","directory":"/","path":"/click","relative":"/click","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/click","queryKey":{},"chunks":["click"]},"urlOriginal":"/session/012acb90-5250-11e3-8642-999a5a74e2a5/element/%3Awdc%3A1384998936458/click"} (WebElementReqHand) (Selenium::WebDriver::Error::UnknownError) ./features/step_definitions/flow_steps.rb:8:in `block (2 levels) in <top (required)>' ./features/step_definitions/flow_steps.rb:7:in `/^I create a (.+) in Flow new topic$/' features/flow_anon.feature:7:in `When I create a Title of Flow Topic in Flow new topic' Error Message => 'Click failed: TypeError: 'undefined' is not a function (evaluating 'load.bind(this,$node,content,contentFormat)')' caused by Request => {"headers":{"Accept":"application/json","Connection":"close","Content-Length":"2","Content-Type":"application/x-www-form-urlencoded","Host":" 127.0.0.1:8911","User-Agent":"Ruby"},"httpVersion":"1.1","method":"POST","post":"{}","postRaw":"{}","url":"/click","urlParsed":{"anchor":"","query":"","file":"click","directory":"/","path":"/click","relative":"/click","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/click","queryKey":{},"chunks":["click"]},"urlOriginal":"/session/20072f90-5250-11e3-a36b-3b9a28e15161/element/%3Awdc%3A1384998996434/click"} (WebElementReqHand) (Selenium::WebDriver::Error::UnknownError) ./features/step_definitions/flow_steps.rb:8:in `block (2 levels) in <top (required)>' ./features/step_definitions/flow_steps.rb:7:in `/^I create a (.+) in Flow new topic$/' ./features/step_definitions/flow_steps.rb:40:in `/^I have created a Flow topic$/' features/flow_logged_in.feature:13:in `Given I have created a Flow topic' Failing Scenarios: cucumber features/flow_anon.feature:5 # Scenario: Add new Flow topic cucumber features/flow_logged_in.feature:12 # Scenario: Add new Flow topic 2 scenarios (2 failed) 12 steps (2 failed, 8 skipped, 2 passed) 1m10.033s -- =S Page Features engineer
_______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
