I plan to reuse existing Specflow scripts (currently used for acceptance and automatic testing) to test the VS load, and also to avoid duplication and extra work. The spectrometer works great for these tests, because it runs them once, but in the context of the load test, when it runs each Specflow script more than once and in parallel it encounters problems and errors, and with a lot of users it gets more
These errors can damage part of the test, which in the end creates an incorrect test result, for example, using one Specflow script as a test script with a load test of 20 users and a time period of 2 minutes can cause 50 errors similar to the following. Thus, the test result shows that a particular script runs 200 times when 150 have passed, and 50 failed tests and failures are caused by Specflow errors. In the context of a load test, this result is completely wrong and wrong, because the test itself has problems.
Error message:
ScenarioTearDown threw exception. System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object. TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.HandleBlockSwitch(ScenarioBlock block) TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStep(StepInstance stepInstance) TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.Step(StepDefinitionKeyword stepDefinitionKeyword, String keyword, String text, String multilineTextArg, Table tableArg) TechTalk.SpecFlow.TestRunner.Then(String text, String multilineTextArg, Table tableArg, String keyword)
After some research, it seems that Specflow cannot generate and run the parallel script that caused this conflict and did not pass any test, but I also have some doubts about this and you are trying to find out if there is any workaround about this, or if I miss something and interestingly, can Specflow scripts be used to test the load at all?
source share