Hi,
as far as I know no one asked for this question so could you tell me if it’s possible to specify to the runner a specific folder path?
In my collection I have organized the folders this way:
.
├── TC1
│ └── ACTIVITY_CREATION
└── TC2
└── ACTIVITY_CREATION
and I do no want to run these folders on the same run. I’ve tried this
newman.run({
collection: require('./collection.json'),
folder: 'TC1/ACTIVITY_CREATION',
reporters: 'cli'
})
but it’s not working.
Hey @aurelien.lair
That’s currently not supported in Newman - You would need to add a unique identifier to the folder name for Newman to pick this up.
opened 05:16AM - 08 Jan 19 UTC
feature
runtime
product/newman
Issue:
I'm unable to specify a specific folder for execution with newman CLI, w… hen the leaf level folder name is repeated somewhere else in the folder heirarchy for a Postman Collection.
Its quite possible that I'm making a silly mistake, but researching online didn't give me specific answers, maybe documentation needs to include an example if the ability exists.
1. Newman Version 4.3.1
2. OS details
Linux nkcell460 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
3. Using as CLI
3. Just started using newman. Could not find the answer looking up blogs or online resources, particularly:
https://stackoverflow.com/questions/49769010/newman-run-subdirectory-of-a-collection
and
https://github.com/postmanlabs/newman/pull/1654
4. Expected behaviour: --folder option should support the subfolder specification by fully qualified path under the Collection
5. Command / script used to run Newman:
Tried:
a. newman run \<collection>.json --folder "sample/_identifier" --environment \<env>.json -n 1
newman run \<collection>.json --folder "final/_identifier" --environment \<env>.json -n 1
(i.e. unique parent and the subfoder)
Result : Nothing selected for run
and
b. newman run \<collection>.json --folder "fully/qualified/path/final/_identifier" --environment \<env>.json -n
Result : Nothing selected for run
c. newman run \<collection>.json --folder "_identifier" --environment \<env>.json -n
Result : runs hd7 / final / _identifier
Steps to reproduce the problem:
1. Create a collection with a folder structure.
2. Ensure a folder name is repeated under a different heirarchy
3. Try to use different expressions for --folder option for newman cli to execute the folder '_identifer' under sample
If I have a subfolder with the same name somewhere else in the folder structure, how do I select a specific one?
--folder "\<parentFolder1>/theName"
doesn't seem to work.
newman version 4.3.1