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

scope=given not fully working #793

Open
matteo-cristino opened this issue Jan 15, 2024 · 0 comments
Open

scope=given not fully working #793

matteo-cristino opened this issue Jan 15, 2024 · 0 comments

Comments

@matteo-cristino
Copy link
Collaborator

I noticed some problem with the scope=given configuaration

  1. When picking something from an object that does not exists:
    Given I have a 'string' named 'str' in 'obj'
    Then print the data
    or similar when searching it under my name that is not explicitly define in the zencode
    Given my name is in a 'string' named 'name'
    and I have my 'string' named 'str'
    Then print the data
    In particular, in the latter case, if name is not specified should we add a key to the codec, e.g. my_name=true, to let the code that read the output know that that varibale is its name? Moreover the variables loaded with Given I have my should have another value in the codec, e,g. my_variable=true to let the code that read the output to know that this variable should be inside the object named by the name?
  2. rename a variable
    Given I have a 'string' named 'str'
    and I rename 'str' to 'str_string'
    and I have a 'base64' named 'str'
    Then print the data
    at the moment this fails beacuse str is not found, but if the rename part is allowed then we will end with two different variable in the codec, but only one is required as input. How should we handle this?
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

1 participant