-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with parallel executive when done in both vstestconsole.exe and also visual studio by enabling parallel execution mode #1025
Comments
It's been a week and no response from team? |
@manaswinipolkampally,
|
@manaswinipolkampally this problem isn't with mstest it's with chrome doesn't run scripts in the background. it only executes the on-screen script |
I don't think this is a bug with EasyRepro - we're running in parallel with it fine. The issue here is going to be in how you're instantiating |
You've got https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/static |
Are you seeing the tests in-progress at the same time in the Test Explorer window? Or are the test methods themselves running sequentially? |
And you're only seeing one browser instance? I'm not really sure if so, instantiating an |
I am seeing 2 browser instances, but the problem is only the on-screen browser is executing the test case and the background browser is stuck |
Yes my issue is also the same |
I've never seen that before. Does the test that instantiated the one in the background fail? Have you tried running in headless mode? |
Yup tried but no Luck! |
@ewingjm your test cases are running parallel on chrome? |
Yes, but I use NUnit rather than MSTest. |
Tried with Nunit still the same error |
What's the error message? |
Not an error message. getting the same results I got with Mstest browser is getting stuck in the background |
So does the test run itself actually succeed if it doesn't end in an error message? What happens if you put breakpoints on both test methods and try to debug through? |
I got it running using Firefox but its not working with chrome . but firefox is slow and keeps breaking |
Can anyone help me how to solve this issue and make my scripts run parallel in Chrome browser. |
Sure we can connect |
|
Bug Report
EasyRepro Version
UCI or Classic Web
Online or On Premise
Browser
Describe the bug
My main objective is to run the tests in parallel without having the use of azure pipeline.
So studied and followed all the steps provided by the company and implement it. My machine is 32 core hence at the max almost 30 process I can run in parallel. This is working properly because of the use of Ms test adapter. I am able to launch and open browsers simultaneously but the catch over here is that the executive of the tests and it's functionality which needed to be covered is taking place with the current window not on all the browsers which are launched. Hence unable to run the tests in parallel.
We had tried multiple options such as using the concept of threads, async and await but nothing was working as expected.
Can you help us out with the issue of why this happening and why we are unable to execute tests in Parallel ?
Code to reproduce
Place this code in Properties/AssemblyInfo.cs file
[ assembly: Parallelize(Workers =3, Scope = ExecutionScope.MethodLevel]
Place the next piece of code in setting file(settings.runsettings) file which is an XML
RunConfiguration
MsTest>
Parallelize>
Workers> 3/Workers>
Scope> MethodLevel/Scope>
/Parallelize>
/MsTest>
Expected behavior
Launching the browser based on the workers count and tests that needs to be run.
Screenshots
The text was updated successfully, but these errors were encountered: