Create a test scenario (Collection) from different Postman Collections
-
$ npm install -g
-
$ postcamp create -t 'TestConfig.json' -o './out.json'
To run newman after test creation:
$ postcamp create -t 'TestConfig.json' -o './out.json' -newman true
{
"name": "collectionName",
"items": [
{
"collection": "TestCollection.postman_collection.json",
"folder": "Folder1",
"requestName": "Request7"
},
{
"collection": "TestCollection.postman_collection.json",
"folder": "Folder2",
"requestName": "Request8"
}
]
}
Known issues:
- Multiple requests with same name
- Multiple folders with same name
- No error message if folder is not found (cannot find item of null)
Naming of out collection not working