Is it possible to start subgroup of tests from TestExecute command line?
I want to be able to start Emulators or SemiReal subgroup(with folder icons on image) or Emulators or SemiReal test.
I tried different combinations from description: http://support.smartbear.com/viewarticle/54705/
Here is the last result but still not working:
"%PROGRAM_FILES%\SmartBear\TestExecute 10\Bin\TestExecute.exe"
"C:\TestProject\LraTestProjectSuite.pjs"
/r /p:EpicIteration /projectitem:SemiReal /e
Result is:
The project item 'SemiReal' was not found in the project 'EpicIteration'.
Test project structure looks like this:
What is the right way to start different subgroups of tests from commandline?
It is impossible to run a specific test item from the command line. The /projectitem parameter you are trying to use for this runs a project item (e.g. Network Suite job or specific keyword test), but not a test item.
You can find a solution that will allow you to run individual test items in this article on the SmartBear web site.
Related
I'm running unit tests on my GetModelAsync() and CreateModelAsync() methods in VS17. I then run Assert.Equal checks on the model fields to ensure they match the expected values.
I want to be able to see the final state of my models, which will help me determine why a test is failing or allow me to manually check my models. I'm thinking something similar to tracking variables in the debugger would make sense, although I don't want to actually run the debugger.
Is there a way to do this?
You can write to the console in your tests and it will show up in Test Explorer. You may want to serialize complex objects to JSON first before doing this. For example:
Console.WriteLine(JsonConvert.SerializeObject(myObject));
Note, for Visual Studio's built in test runner, you have to go through a few steps to see the console output. In the Test Explorer window, click the name of your test, then in the results panel click the Output link, which will open a separate window to show the console output. It's all very unintuitive.
As a test engineer we always find the lack of info in the Test Runs tab too confusing and useless when it should be one of the most important tab in order to know which test runs are related to which tests builds, test plans, creators, etc
However I can´t find a way to add more columns or info like in the test plan tab. Is there any way to fix this?
No, you can’t add additional columns to test run in Test>Runs tab, you need to check those information in the summary of a test. (Double click a test run> Test results> double click a test)
There is a user voice that you can vote: Additional columns for test run in test > Runs tab
I´m using Selenium IDE and the export function to generate Ruby/WebDriver tests which I then extend step by step so that I end up with a couple of test methods per class.
I would like to run just one single test method from that class, but I don´t find an option within RubyMine to do so.
Thx.
What works for me (rspec, minitest) is placing the cursor in the test case I want to run, or in the beginning of the file if I want to execute all tests within that file, and hitting Shift + F10.
Please consult the Run menu as well for further options.
The name of the test class hast to start with "Test". If this is the case, the methods starting with "test" are recognized as tests, and the context menu offers to execute just that single test.
I have a few lists of tests that I setup for a project that builds to a website. I have a bunch of unit tests and integration tests that runs before deploying the site. I have one user that clicks on the failed build in Build explorer but the Test results(that I can see-all test) that appears below that is empty.
If I click on it I can see a complete list of tests that passed as well as the test that failed. In the "Test Results" window at the bottom there is a drop down list to choose the(it looks like environment??) and when they choose "System#SERVERNAME SERVERTIME" it does not show the list that I can see if I am logged in. It seems to be a permission issue but where?
Thank you
Jack
When the build fails, I'd like to execute a program that shoots me in the head with this. I've written the program already - I just need it to run when I break the build.
CCTray has the option to make a sound or icon - but not to run a file. Any simple ideas? I'd rather this not be an all day project. :)
CCTray allows you to run commands. In CCTry, go to File | Settings and then click on the Exec tab.
If you run Outlook, you can set up a rule that runs an application whenever you receive an email saying the build is broken. Just follow the rules wizard and you will find it (in Ootlook 2007 it's on the 3rd page of the wizard, in the select action part).
Cradiator has functionality to monitor build servers and do stuff when a build breaks. It doesn't have code to run an executable but it would be a cinch to download the code, change it and get what you want. Here's what I think is the quickest path to getting this done:
Download the source for Cradiator
Edit the DiscJockey.cs class
Add 1 line of code that starts your program (line 34) eg:
Configure Cradiator to monitor your build server (ie edit app.config and add your url) and run
if (newlyBrokenBuilds.Any())
{ // Add a line of code to start your program here eg
Process.Start("C:\\myprogram.exe");
}