Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JsTestDriver on NetBeans stops testing after a failed assertion

Seems like in Chrome works fine. enter image description here

Regarding Firefox as in comment said it is not correct answer. I have managed to get it work partially. The issue is how netbeans handle failed tests and how jstestdriver.jar is started. I know this doesn't solve issue but it is pointing in right direction.

enter image description here

Steps to reproduce this.

  1. Start JS Test Driver from Services
  2. Run test.
  3. Since I am using linux. I have located jstestdriver.properties from Netbeans configuration folder for current user. In my case it is located in

    /home/{user}/.netbeans/8.2/config/Preferences/org/netbeans/modules/javascript/jstestdriver.properties

    Edit location property by adding arguments to jstestdriver.jar --tests all --reset. After editing my properties looks like this.

    location=/home/user/Downloads/jstestdriver-1.3.5.jar --tests all --reset server.url=http://localhost:42442 strict.mode=false use.browser.ANDROID_DEVICE_CHROME=false use.browser.ANDROID_DEVICE_DEFAULT=false use.browser.ANDROID_EMULATOR_DEFAULT=false use.browser.Chrome=false use.browser.Chrome.INTEGRATED=false use.browser.SL__Browsers_FirefoxBrowser=true use.browser.SL__Browsers_MozillaBrowser=false

  4. Repeat 2 times.

    • Restart JS Test Driver from Services.
    • Run test.

After second restart and run, it should run all tests as in picture above. If you can add arguments --tests all --reset for JS Test Driver in Netbeans it should solve issue to work as in Chrome.