Custom place holders for value ONE.OF
See original GitHub issueSomething like below e.g. Currently framework supports the below. Response:
{
"currentStatus": "Searching"
}
In certain use-cases, the "currentStatus"
can be one-of multiple values.
Then it would be nice to support like below.
Assertions:
{
"currentStatus": "$ONE.OF:[Found, Searching, Not Looking]"
}
That means when the actual response with currentStatus
having “Found” or “Searching” or “Not Looking” will pass.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Using placeholders - Zendesk help
Placeholders are references to ticket and user data that you include in the subject and body of email notifications.
Read more >Advanced: Placeholders | Jira Service Management Data ...
The placeholders available are all the attributes available in the create/edit dialog. The value of the attribute with the same name as the...
Read more >How to Use Custom Placeholders - Docentric AX
Define and replace Custom placeholders with the corresponding values; Custom image placeholders; Set up the custom DSP class to be used in Docentric...
Read more >Placeholders in Resource Files - Smartling Help Center
Here is a list of some common placeholders formats and custom placeholder directives to capture the text "first name" as a placeholder in...
Read more >Java generating Strings with placeholders - Stack Overflow
This class takes a piece of text and substitutes all the variables within it. The default definition of a variable is ${variableName}. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jbonn360 , thanks mate!
@sarthak1997, FYI only- You can still help us in reviewing the PR, please!
The below is not part of this ticket.
Just thinking the best way we can solve this, if any of the values contains a comma(
,
)Vanila case:
Comma case(then we can go for pipe
|
splitter or any other better way?):There is no such usecase logged yet, but we will raise a separate TCH-DEBT ticket to handle this.
Feature available in version 1.3.9 and higher.