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

Unify the Approach to Field Setting in Feature Files #25

Open
agosh01 opened this issue Apr 18, 2024 · 2 comments
Open

Unify the Approach to Field Setting in Feature Files #25

agosh01 opened this issue Apr 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@agosh01
Copy link
Member

agosh01 commented Apr 18, 2024

Request is to standardize ability to set fields in feature files

e.g.
Given "" creates data for "registerlistener"
And sets "entity.name" to "body.access"
And sets "resource.name" to "door"
And sets "resource.instance" to "front_left"
And sets "resource.message" to "Door"
When sends "registerlistener" request
And user waits "3" second
Then the status received with "code" is "OK"

should use source and sink like

And sets "attributes.source.entity.name" to "body.access"
And sets "attributes.source.resource.name" to "door"
And sets "attributes.source.resource.instance" to "front_left"
And sets "attributes.source.resource.message" to "Door"
When sends "registerlistener" request
And user waits "3" second
Then the status received with "code" is "OK"
@neelam-kushwah
Copy link
Contributor

@agosh01 The "register listener" method of uTransport takes a UURI input, consisting of authority, entity, and resource message. When setting the proto fields from the feature file, for the "register listener" method, the key would be "entity.name". However, for the "send" method, the key would be either "message.attributes.source.entity.name" or "message.attributes.sink.entity.name".

@agosh01
Copy link
Member Author

agosh01 commented Apr 24, 2024

HI @neelam-kushwah This is more towards standardization of umsg creating in .feature file to improve readability for user. i.e. User will make UMessage format in .feature and for register listener wrapper we use sink/source uri from UMSG.

@neelam-kushwah neelam-kushwah added the enhancement New feature or request label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants