specrun

How to run multiple specflow projects through cmd?

回眸只為那壹抹淺笑 提交于 2021-02-08 11:44:37
问题 I have numerous .Net Framework class library projects, all with specflow and specrun.specflow nuget packages installed. I'm able to run all these projects in the Test explorer of Visual Studio 2019 but I want to know if this can be run using cmd prompt. I'm planning to automate by creating a batch file to run all the projects through cmd without having to go test explorer in VS 2019 and run them manually Does anybody have any idea if this can be achieved? If possible, can you please share the

How to execute specflow feature files in different environments and different browsers through dynamical

和自甴很熟 提交于 2020-04-30 06:27:06
问题 I am using specflow + specrun for automation project.we have 3 environments staging, uat and production .so I have to pass environments dynamically through command line which I want to run and some times I have to run the scripts in single browser and for some times to run in multiple browsers so how to pass same dynamically through command line, so we have to handle multiple environments at a time different browsers through command line in specrun, I have tried to set different targets but I

How to run feature files in parallel when using specflow/specrun?

痴心易碎 提交于 2020-01-04 19:10:16
问题 I am implementing a project for the proof of concept and here is what i am using: VS 2013,MSTest/Test Explorer, Specflow and specrun I have created 3 specflow feature files, each having it's own sets of different scenarios. When I run these tests from test explorer i can successfully see all the scenarios in each feature file running one by one and that's absolutely fine. Next, I want to run all the 3 feature files in parallel. Is there a way to do this? All my feature files are completely

SpecRun returning exit code 120 with @ignore tests

大兔子大兔子 提交于 2019-12-22 14:59:37
问题 Running SpecRun from command line as part of a Continuous Integration setup, and recently an ignored ( @ignore ) test generated an exit code of 120 when SpecRun completed. Currently, we break the build on any exit code not equal to 0 (universal success indicator!). What does exit code 120 mean exactly? Is it simply "A test was ignored"? or does it imply more? What other values are returned? Sample build output below. We collect all exit codes (currently 1 SpecRun task, so only 1 exit code is

SpecFlow Parallel and non Parallel tests

时光怂恿深爱的人放手 提交于 2019-12-11 15:28:07
问题 I'm using SpecFlow to automate my web tests and using parallel execution to speed them up. The issue i have is that one test which checks that invalid passwords are rejected will lock the user account if run 3 times without a successful login. I've set them up to perform a successful login afterwards however running in parallel means against multiple targets they are ran at the same time and still lock the account. Is there a way I can set just this test to not run in parallel so it doesn't

SpecRun returning exit code 120 with @ignore tests

女生的网名这么多〃 提交于 2019-12-06 08:58:55
Running SpecRun from command line as part of a Continuous Integration setup, and recently an ignored ( @ignore ) test generated an exit code of 120 when SpecRun completed. Currently, we break the build on any exit code not equal to 0 (universal success indicator!). What does exit code 120 mean exactly? Is it simply "A test was ignored"? or does it imply more? What other values are returned? Sample build output below. We collect all exit codes (currently 1 SpecRun task, so only 1 exit code is collected), and print out to "exit codes" 58> Done. 58> Result: all tests passed (5 ignored) 58> Total:

Insert screenshots in SpecRun/SpecFlow test execution reports

不羁岁月 提交于 2019-12-04 14:23:15
问题 I'm using SpecFlow with Selenium WebDriver and SpecRun as test runner to create and execute automated test cases and I'm looking for a solution to insert screenshots in the test execution report. I wrote a method to create screenshots after every Assert function. The images are saved to a specific location, but when I make the result analysis I have to follow the report and the images as well. It would be nice to have them in the same location (precisely in the report html). Is there any way

Insert screenshots in SpecRun/SpecFlow test execution reports

风格不统一 提交于 2019-12-03 09:03:18
I'm using SpecFlow with Selenium WebDriver and SpecRun as test runner to create and execute automated test cases and I'm looking for a solution to insert screenshots in the test execution report. I wrote a method to create screenshots after every Assert function. The images are saved to a specific location, but when I make the result analysis I have to follow the report and the images as well. It would be nice to have them in the same location (precisely in the report html). Is there any way to perform this (something similar to Console outputs)? (reposting from https://groups.google.com/forum