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

Jython steps passing DataTable argument to step definition #599

Closed
lggroapa opened this issue Oct 4, 2013 · 4 comments
Closed

Jython steps passing DataTable argument to step definition #599

lggroapa opened this issue Oct 4, 2013 · 4 comments

Comments

@lggroapa
Copy link
Contributor

lggroapa commented Oct 4, 2013

If i want to pass a DataTable as a parameter to the step definition it fails due to a

ClassCastException: DataTable cannot be cast to String

in JythonBackend.java in the execute method there is a cast for the argument

....
pyArgs[i + 1] = new PyString((String) args[i]);
....

I understand why it's needed since you just execute the python code from a string using exec so passing an object as argument will never work. But it would be nice to have the DataTables in Jython too or a better error message :)

@aslakhellesoy
Copy link
Contributor

Could you send a pull request with a fix for this?

@lggroapa
Copy link
Contributor Author

lggroapa commented Oct 4, 2013

I will try on monday

@lggroapa
Copy link
Contributor Author

lggroapa commented Oct 8, 2013

#602 made this pull

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants