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

comparing values in "xxxEval" steps #163

Closed
davidlinse opened this issue Mar 26, 2014 · 5 comments
Closed

comparing values in "xxxEval" steps #163

davidlinse opened this issue Mar 26, 2014 · 5 comments

Comments

@davidlinse
Copy link

There seems to be an issues with storing/comparing/evaluating expected values in xxxEval steps.

Example(s):

{ "type": "verifyEval", "script": "return 7;", "value": 7 } 

Error-Message: 'Eval result "7" does not match "".'

or:

{ "type": "verifyEval", "script": "return true;", "value": true } 

Error-Message: 'Eval result "true" does not match "true".'

I've setup a branch to demo this issue with a proposal for a fix.
Maybe you want to have a look here ?

kindest regards
~david

@Zarkonnen
Copy link

Thanks, looking at that now. Eval result "true" does not match "true".' is a bit overly philosophical for what's meant to be a straightforward tool. :P

  • David

On Mar 26, 2014, at 10:24 , David Linse notifications@github.com wrote:

There seems to be an issues with storing/comparing/evaluating expected values in xxxEval steps.

Example(s):

{ "type": "verifyEval", "script": "return 7;", "value": 7 }
Error-Message: 'Eval result "7" does not match "".'

or:

{ "type": "verifyEval", "script": "return true;", "value": true }
Error-Message: 'Eval result "true" does not match "true".'

I've setup a branch to demo this issue with a proposal for a fix.
Maybe you want to have a look here ?

kindest regards
~david


Reply to this email directly or view it on GitHub.

@Zarkonnen
Copy link

OK, I ended up fixing it a bit differently than you did in your branch, but I also included your test - thanks!

9aa3941

  • David

On Mar 26, 2014, at 10:24 , David Linse notifications@github.com wrote:

There seems to be an issues with storing/comparing/evaluating expected values in xxxEval steps.

Example(s):

{ "type": "verifyEval", "script": "return 7;", "value": 7 }
Error-Message: 'Eval result "7" does not match "".'

or:

{ "type": "verifyEval", "script": "return true;", "value": true }
Error-Message: 'Eval result "true" does not match "true".'

I've setup a branch to demo this issue with a proposal for a fix.
Maybe you want to have a look here ?

kindest regards
~david


Reply to this email directly or view it on GitHub.

@davidlinse
Copy link
Author

Looks good so far, thanks for fixing this.
~david

@davidlinse
Copy link
Author

Any chance for this to land in SE-Interpreter versions as well ?
Would really like to see (especially) the node.js variant getting updated.. ;)

best ~david

/cc: @Zarkonnen

davidlinse added a commit to davidlinse/se-interpreter that referenced this issue Apr 7, 2014
This is an attempt to fix an issue described in (se-builder/#163)[SeleniumBuilder/se-builder#163] 
which allows comparison of evaluated values.

Example:
{
  "type": "verifyEval",
  "script": "return true;",
  "value": "true"
}

Before: Error: "true" does not match "true"
After: true
davidlinse added a commit to davidlinse/se-interpreter that referenced this issue Apr 7, 2014
This is an attempt to fix an issue described in [SeleniumBuilder/se-builder#163
which allows comparison of evaluated values.

Example:
{
  "type": "verifyEval",
  "script": "return true;",
  "value": "true"
}

Before: Error: "true" does not match "true"
After: true
davidlinse added a commit to davidlinse/se-interpreter that referenced this issue Apr 7, 2014
This is an attempt to fix an issue described in SeleniumBuilder/se-builder#163]
which allows comparison of evaluated values.

Example:
{
  "type": "verifyEval",
  "script": "return true;",
  "value": "true"
}

Before: Error: "true" does not match "true"
After: true
davidlinse added a commit to davidlinse/se-interpreter that referenced this issue Apr 7, 2014
This is an attempt to fix an issue described in SeleniumBuilder/se-builder#163
which allows comparison of evaluated values.

Example:
{
  "type": "verifyEval",
  "script": "return true;",
  "value": "true"
}

Before: Error: "true" does not match "true"
After: true
@Zarkonnen
Copy link

It is gefixed in se-interpreter HEAD and shortly in the next release: Zarkonnen/se-interpreter@9ee1e2c

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

No branches or pull requests

2 participants