Using MTM test recorder as a base for a load test - microsoft-test-manager

I'm not sure if this is what I can do with MTM but I am asking.... If we use MTM Action recorder to record the steps of a thick gui client (not a web test). When we save it, I know we can open it in Visual Studio. If we try can convert that to a load test will just convert the underlying calls to code and not really use the UI so that we can generate Load?

Related

Run different testcases using panel button in CANoe

I have the different test cases developed in test environment using CAPL.
Now I want to run all the testcases designed in CANoe. It should run using a button from panel in CANoe.
Can anyone give an alternative solution to access the testcases in panel from just only one button?
There are two ways to achieve this.
Easy way: Go to the configuration of the Test Module. Enable the Start condition using a system variable. Now you can attach this system variable to a control in your Panel and you can start the test case from the panel. In this method, you can only Start a Test case. It is not possible to stop a test case using system variable.
Hard way: You can develop a .NET Panel (how-to available under chapter ".NET Panels") and then access the CANoe config via COM. In this method, you can have complete control over your test cases (start, stop, resume, etc.)

How can I see the results of my Unit Tests in VS2017?

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.

Unable to run all values from csv file while doing a performance test

Im using VS Web Performance Test Tool.
My Application has a login and few functionalities but doesnt have a logout . I one closes the browser and opens , it asks for login .
Now, i have 5 rows in excel , but only the first is run and it stops.
Please let me know if anyone knows how to make all rows run.
Thanks,
SK
By default, running a Web Performance Test (WPT) only does one execution of the test. A WPT can be called from a Visual Studio Load Test to run it many times by many virtual (i.e. simulated) users (VUs).
A data driven WPT can easily be run more than once by either of two methods.
After the test has been run once, click the "Edit run settings" on the Web Test results viewer. The modified run settings only apply to runs started by clicking the "Click here to run again" and are lost when the Web Test results viewer is closed. See here for more details.
The default can be changed in a .testsettings file. If no such file is already in the solution, then use the context (right click) menu of the solution in Solution Explorer and select Add => New item then follow the prompts to add a Test settings file. The Web test section of the file controls how WPTs are executed. See here for more details.

Visual Studio Load Test View Raw Results

I am running a Coded UI test using Visual Studio load testing capabilities.
My test runs successfully, but I am trying to get a better understanding of results. My results are stored as "All Individual Details" and are stored in a local database. However, I'd like to extract raw results for each individual transaction. All I can really see in the results is the number of times each transaction ran, the average response time and the min and max etc. I'd like to get hold of the raw results for each individual transaction however. Is this possible?
I'm using VS2012.
Visual Studio stores load test results in an SQL database, provided the "run settings" specify so. The contents of the database for Visual Studio 2010 is defined here. A few changes have been made for later versions but much remains the same.
Much of the contents of the database is derived from Web Performance tests but the question asks about load tests running Coded UI tests. Transactions and pages are features of Web Performance tests, whilst the author of a Coded UI test may think of transactions and pages, Coded UI has no inbuilt items that provide that data. Hence various parts of the database will be empty.
To find the connection string for the SQL load test database, open any load test file then from toolbar (or context menu) select "Manage Test Controllers". The connection string will be shown within the window.
to get the raw data do the following,
1.open the results
2. select the graph tab
3. Select the drop down, e.g. transaction response time
4. In the top right corner, select Export graph data to excel

How do you link a portion of code to a Test Case with MS Test Manager or TFService 2013?

I am currently using Team Foundation Service 2013. I'm going to give you an example and I want to know if it's possible:
I create an application.
if (testPassed){ Console.WriteLine("The program"); }
I want to select the code and create a test case knowing that my pass test case is related to this portion of code.
Test Case:
Step: Run the program
Expected: The program should output "The program passed!"
The Tester runs the test case and fails it because the output was "The program"
The bug shows up in "My Work" in the "Team Explorer" tab (Which it already does)
I select the test case and it automatically highlights the same code I highlighted as being related to the test case I created.
For anyone that has experience with TFService 2013 or Test Manager, how do I link code in Visual Studio 2013 to a Unit Test? This would be HUUUGE!
You can track code coverage in Microsoft Test Manager when the testers manually execute test cases. I wrote a article on this last year. It isn't exactly what you are asking for but I think it gets close. I haven't tried it in TFService so I'm not 100% sure it will work there.
http://blogs.msdn.com/b/visualstudioalm/archive/2012/11/28/code-coverage-in-microsoft-test-manager-in-visual-studio-update-1.aspx
Mike
I suggest you to link your coding test with id of workitem created in Microsoft Test Manager.
Create test case in Microsoft Test manager
Create test project in visual studio
Create test typed "Coded UI Tests"
Windows appears , select link to id Workitem (Select find button, and edit your query WIQL or enter directly id)

Resources