newman run your_collection.json -r tesults -reporter-tesults-target -reporter-tesults-buildName 1.0.0 -reporter-tesults-buildResult fail -reporter-tesults-buildDescription 'A build description' -reporter-tesults-buildReason 'Build failure due to. Use this to report a build failure reason. newman run your_collection.json -r tesults -reporter-tesults-target -reporter-tesults-buildName 1.0.0 -reporter-tesults-buildResult pass -reporter-tesults-buildDescription 'A build description' Use this to report a build description for reporting purposes. Reporter-tesults-buildDescription Optional Once you complete these steps, move on to the next folder in this collection to submit your solution, this time using Newman. newman run your_collection.json -r tesults -reporter-tesults-target -reporter-tesults-buildName 1.0.0 -reporter-tesults-buildResult pass Run a folder: Run the command again, this time adding the option -folder folderName to the end, to specify the first folder to run from the collection. Use this to report the build result, must be one of. newman run your_collection.json -r tesults -reporter-tesults-target -reporter-tesults-buildName 1.0.0 Use this to report a build version or name for reporting purposes. You can optionally report build related information. Tesults will use the folder names (groupings) you create within your collection for Test suite names, so it's recommended you breakdown related tests into folders in your collection if you would like a report broken down into test suite sections. Newman run your_collection_3.json -r tesults -reporter-tesults-target Postman folders Newman run your_collection_2.json -r tesults -reporter-tesults-target newman run your_collection_1.json -r tesults -reporter-tesults-target In order to do this generate multiple targets on Tesults and then have each of your newman cli commands utilize a different target for each collection you run. Results for different test jobs or collections should be reported to different Tesults targets in order to maintain results history and utilize smart analysis capabilities. When you run your Postman collection with Newman as shown above, results will be submitted to Tesults.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |