TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Leo Danny
NA
12
477
Executing nunit proj in parallel which refer diff conf file?
Oct 3 2018 2:55 AM
We have a NUnit project where I need to execute the code in parallel with different configuration for each instance. We will refer a config.json file which will have the path of some files and user credentials. As of now only one config.json file is fetched and it is executing sequentially. My expectation is like if I have 5 different config.json files (config1, config2...), it has to fetch all the files and execute all the tests in parallel. In my application we will have some containers, if I have 5 container and 5 config.json it has to pick the respective container based on the config.json. We are using the API functions in scripting, so it is not a problem in running the cases at same time with different containers in one machine.
Can anyone please suggest or share how we can achieve this? Thanks in advance.
What I have tried:
I have created a single bat file from where different config.json will be executed using start command
start nunit3-console.exe "Nunit.TestFramework.dll" PATH\testconf1.json
start nunit3-console.exe "Nunit.TestFramework.dll" PATH\testconf2.json
start nunit3-console.exe "Nunit.TestFramework.dll" PATH\testconf2.json
We can achieve parallel execution though this but there is a problem, if we are integrating the project with CI like Teamcity this solution won't work. The bat file can be executed from CI, but the main CMD window will be closed once all these commands get started in new CMD window. And once the main window get closed the CI will assume as the execution got completed.
Reply
Answers (
3
)
Why my blog still showing submitted ?
How can i get paytm mall marketplace orders like flipkart