AssignVariables - While conversion it is adding additional character ( ? )in the test due to which tests are failing. - Bug
See original GitHub issueSnippet of portman config -
"assignVariables": [ { "openApiOperationId": "createOrg", "collectionVariables": [ { "responseBodyProp": "id", "name": "createOrg.id" } ] } ],
Postman collection test snippet:
// pm.collectionVariables - Set createOrg.id as variable for jsonData.id
if (jsonData?.id) {
pm.collectionVariables.set("createOrg.id", jsonData.id);
console.log("- use {{createOrg.id}} as collection variable for value",jsonData.id);
} else {
console.log('INFO - Unable to assign variable {{createOrg.id}}, as jsonData.id is undefined.');
};
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Advanced googletest Topics
This document will show you more assertions as well as how to construct complex failure messages, propagate fatal failures, reuse and speed up...
Read more >Keyword Test Variables | TestComplete Documentation
To assign values to variables in keyword tests, you use the Set Variable ... Click Finish to close the dialog and add a...
Read more >BuiltIn - Robot Framework
Using variables with keywords creating or accessing variables. This library has special keywords Set Global Variable, Set Suite Variable, Set ...
Read more >Unit test reports - GitLab Docs
Introduced in GitLab 15.2. You can copy the name and path of failed tests when there are failed tests listed in the Test...
Read more >Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Pipeline won't trigger · Pipeline queues but never gets an agent · Pipeline fails to complete · Get logs to diagnose problems ·...
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 Free
Top 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
@thim81 Thanks alot for your prompt responses and quick turn around with fix.
@yajiv789 We just released 1.10.2, which should fix your issue reported.
If you are using a Node version, lower than Node 14, Portman will not use “optional chaining” in the generated Postman collection.
Given that Node 12 is in maintenance mode until mid 2022, the tip is to start using at least Node 14 or higher. https://nodejs.org/en/about/releases/