New question #281750 on Sikuli:
https://answers.launchpad.net/sikuli/+question/281750
I have a flash application I am trying to test using Sikulix and would like to
automate those tests in some fashion. The application does have a ruby
backend, so using sikulix and jruby seems like a good fit. After setting up a
simple cucumber test suite and a few step definitions I created a setup script
that should focus the browser before all tests. Oddly, when using either the
step definitions or the setup script individually I can receive normal errors
that are debuggable, but when I use them in conjunction with each other all I
get is a JythonSupport error with no additional information. This is making it
very difficult to debug what is going on.
The actual error:
[error] JythonSupport: Not possible to get a Jython on to the classpath!
[error] RunTimeAPI: *** terminating: JythonHelper: no Jython on classpath
The structure for the tests is
tests
images
step_definitions
step_definitions.rb
support
ee_tests_env.rb
new_object.feature
ee_tests_env.rb is a very simple script that should just bring the browser to
the front:
require 'sikulix'
include Sikulix
Before do |f|
Sikulix::App.focus("Google Chrome")
end
step_definitions is also fairly simple
require 'sikulix'
include Sikulix
Given /^The application is showing$/ do
Sikulix::App.focus("Google Chrome")
end
Given /^I click on (.+\.png)$/ do |img|
wait(img, 3)
click(img)
end
Given /^I should see (.+\.png)$/ do |img|
find(img)
end
Given /^I type (.+) in (.+\.png) with offset (\d+), (\d+)$/ do |text, field,
offset_x, offset_y|
puts text
click(Sikulix::Pattern(field).targetOffset(offset_x.to_i, offset_y.to_i))
type(text)
end
Again, individually, these files work as expected, but together they throw this
error. The error i expect is simply that the images cant be found, but instead
I get the Jython error.
If you could point me in the right direction I would be most appreciative.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp