Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created March 3, 2011 13:38
Show Gist options
  • Save andreastt/852778 to your computer and use it in GitHub Desktop.
Save andreastt/852778 to your computer and use it in GitHub Desktop.
● operawatir password.rb
{:manual=>false, :ng=>false, :color_enabled=>true, :check_syntax=>false, :format=>"progress", :opera_idle=>true, :files_to_run=>["password.rb"]}
F{:manual=>false, :ng=>false, :color_enabled=>true, :check_syntax=>false, :format=>"progress", :opera_idle=>true, :files_to_run=>["password.rb"]}
Failures:
1) foo will enter text to a password field
Failure/Error: browser.goto 'http://team.opera.com/testbed/platforms/desktop/sec/master_password.php'
NativeException:
java.lang.NullPointerException: null
# java/util/StringTokenizer.java:199:in `<init>'
# java/util/StringTokenizer.java:221:in `<init>'
# com/opera/core/systems/runner/launcher/OperaLauncherRunner.java:80:in `<init>'
# com/opera/core/systems/OperaDriver.java:132:in `<init>'
# sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
# sun/reflect/NativeConstructorAccessorImpl.java:57:in `newInstance'
# sun/reflect/DelegatingConstructorAccessorImpl.java:45:in `newInstance'
# java/lang/reflect/Constructor.java:532:in `newInstance'
# org/jruby/javasupport/JavaConstructor.java:275:in `newInstanceDirect'
# ./password.rb:5
# :1
Finished in 0.103 seconds
1 example, 1 failure
java/util/StringTokenizer.java:199:in `<init>': java.lang.NullPointerException: null (NativeException)
from java/util/StringTokenizer.java:221:in `<init>'
from com/opera/core/systems/runner/launcher/OperaLauncherRunner.java:80:in `<init>'
from com/opera/core/systems/OperaDriver.java:132:in `<init>'
from sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
from sun/reflect/NativeConstructorAccessorImpl.java:57:in `newInstance'
from sun/reflect/DelegatingConstructorAccessorImpl.java:45:in `newInstance'
from java/lang/reflect/Constructor.java:532:in `newInstance'
from org/jruby/javasupport/JavaConstructor.java:275:in `newInstanceDirect'
... 16 levels...
from /home/andreastt/.rvm/gems/jruby-1.5.6@development/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in `run'
from /home/andreastt/.rvm/gems/jruby-1.5.6@development/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:in `autorun'
from :1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment