Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve exception when executing tests with test-server running but no browsers connected #185

Open
leggetter opened this issue Oct 28, 2013 · 0 comments

Comments

@leggetter
Copy link
Contributor

At the moment you get the following error:

sdk/brjs test apps/brjs-todo/todo-bladeset/blades/todoinput/
BladeRunner version: 0.0-188-gddbea09-DEV, built: 25 October 2013 20:09 BST

Server already running, not bothering to start a new instance...


Testing tests (UTs):
WARN: java.lang.RuntimeException: No browsers available, yet actions requested. If running against a persistent server please capture browsers. Otherwise, ensure that browsers are defined.
Unexpected Runner Condition: No browsers available, yet actions requested. If running against a persistent server please capture browsers. Otherwise, ensure that browsers are defined.
WARN:   at com.google.jstestdriver.browser.BrowserActionExecutorAction.run(BrowserActionExecutorAction.java:89)
 Use --runnerMode DEBUG for more information.
WARN:   at com.google.jstestdriver.ActionRunner.runActions(ActionRunner.java:81)
WARN:   at com.google.jstestdriver.JsTestDriver.runConfigurationWithFlags(JsTestDriver.java:263)
WARN:   at com.google.jstestdriver.JsTestDriver.runConfiguration(JsTestDriver.java:211)
WARN:   at com.google.jstestdriver.JsTestDriver.main(JsTestDriver.java:144)
Tests Failed.


- Time Taken: 2secs
Error:
  Test failure or error while running tests.

Stack Trace:
org.bladerunnerjs.model.exception.command.CommandOperationException: Test failure or error while running tests.
    at com.caplin.cutlass.command.test.testrunner.TestRunnerController.run(TestRunnerController.java:142)
    at com.caplin.cutlass.command.test.TestCommand.doCommand(TestCommand.java:51)
    at org.bladerunnerjs.model.utility.CommandRunner.run(CommandRunner.java:21)
    at org.bladerunnerjs.model.BRJS.runCommand(BRJS.java:277)
    at org.bladerunnerjs.model.utility.UserCommandRunner.run(UserCommandRunner.java:25)
    at org.bladerunnerjs.model.BRJS.runUserCommand(BRJS.java:282)
    at org.bladerunnerjs.CommandRunner.run(CommandRunner.java:77)
    at org.bladerunnerjs.CommandRunner.main(CommandRunner.java:39)

org.bladerunnerjs.model.exception.command.CommandOperationException: Test failure or error while running tests.
    at com.caplin.cutlass.command.test.testrunner.TestRunnerController.run(TestRunnerController.java:142)
    at com.caplin.cutlass.command.test.TestCommand.doCommand(TestCommand.java:51)
    at org.bladerunnerjs.model.utility.CommandRunner.run(CommandRunner.java:21)
    at org.bladerunnerjs.model.BRJS.runCommand(BRJS.java:277)
    at org.bladerunnerjs.model.utility.UserCommandRunner.run(UserCommandRunner.java:25)
    at org.bladerunnerjs.model.BRJS.runUserCommand(BRJS.java:282)
    at org.bladerunnerjs.CommandRunner.run(CommandRunner.java:77)
    at org.bladerunnerjs.CommandRunner.main(CommandRunner.java:39)

Can we provide more information in the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants