The new version of Azure-DevOps no longer allows me to order Test Cases within a Test Suite. Previously there was an 'Order tests' button on the top of the view. Does anyone know how I do this in the new version, please?
In ADO Test plans
Go to any Suite --->In Define tab-->Click order any number of times you want to sort it or order by .
You can See the icon Here
You can click and drag the test cases in the Define tab to reorder them. It's not very discoverable, but it works just fine. Then you can sort by order as the first answer describes.
Related
I have a couple of things I have been trying to work out with no success.
I am using Azure DevOps in the cloud not locally.
Is it possible to simply paste screen captures into Test Case Steps.
When running manual test cases the Runner header displays an icon to Show Description, where do I enter this description in the test case, I have tried the Summary Tab Description with no success.
Image of description issue
Andy put me on the right track, I had to extract the process associated with my project then modify the TestCase.xml. I had to change the FieldName from using Microsoft.VSTS.Common.DescriptionHtml to System.Description
Q1: Is it possible to simply paste screen captures into Test Case Steps.
No, copy/paste screen captures is not supported in Test Case Steps, we can only attach the screenshots as attachments.
Q2: Where do I enter this description in the test case, I have tried
the Summary Tab Description with no success.
Yes, you can enter the description in Summary Tab, make sure you have saved the test case after entering the description. Tested on my side and everything works as expected.
We are currently looking at Testrail as an alternative to using the Zephyr plugin within JIRA as Testrail looks to give us better test case and reporting management than Zephyr does.
Currently faced with the usual problem when changing tools of how to migrate our existing test cases from one to the other.
I know there are importer tools to get Excel spreadsheet cases into Testrail, so that is ok.
The problem I'm facing is how to get the test scripts out of Zephyr.
Does anyone know of any similar plugins to export test cases/scripts from Zephyr to Excel?
I've tried using the inbuilt export function, but it only seems to export the basic case details, not the individual test steps.
Any help greatly appreciated.
the inbuilt export definitely exports the test steps. I am looking at my own exported test cases with test steps right now in xls and csv formats
However the export has many many columns, the test step part is easy to miss.
In my XLS the test steps are in columns BF, BG, and BH. Of course yours are likely to be different, I am only giving you those column names as an example of how many columns you will have to scroll past.
XLS: For example test case EX-123 with 4 steps there will 4 rows merged together until the test steps col. So the "key", "Summary" columns will be 4 rows merged together..
CSV: The all the info is on the 1'st row.. and then at the test step column each test step has a row.
Just take a test case you know has steps, and start to scroll right through the columns and you'll see the steps .
Having done some further investigation myself, it appears there are multiple ways to extract parts of the tests from Zephyr.
If you use the 'Search' function to locate a test and then choose to Export via the Export button in the test case frame itself then you get a summary of the test information but WITHOUT the test steps.
If you use the 'Search' function to locate a test and then choose to Export via the Export button in the test case frame itself then you get a summary of the test information but WITHOUT the test steps.
If you use the Export button from the top of the window (there should be 'Share', 'Export' and 'Tools' buttons) you get additional options.
Selecting the option for 'Excel (All fields)' will extract full test case information, including all the fields.
A slightly quicker way to extract them is to Search for executed tests and from the 'Executed Tests Summary', select a test via the checkbox next to the test and select 'Export'.
This gives the option to extract the test information, including test steps, as CSV, XLS, HTML, XML or RSS.
As stated above, this is a large file and the test step information not readily apparent. (My steps were started in column CH!)
It is also worth noting that each line within the test step appears in a different cell, so importing to another tool will definitely require a lot of reformatting of the test step information.
I have a coded ui test that is written in C#.
When the test case is opened in MTM, no test steps are observed.
I have associated the automated, and this seems to be ok.
I tried to add some methods in my test method, and commented these methods with a summary, but this didn't help.
I will need these steps and I would like them tied back into the code, how is this done?
You must create an action recording for your test case/steps. A test method is created per step. You can then edit those test methods manually.
If you've handcoded a codedUi test then you can only associated the codedUI test method to the overall test case. Manual test steps should indicate what the codedUI test is doing, but there it's no connection between the two.
See Generating a Coded UI Test from an Existing Action Recording
Test steps are added to test cases in MTM. Commonly they provide instructions for manual testing. Such a manual test can be recorded when executed through MTM and that is referred to as an "action recording". The recorded test can be executed again via MTM, that avoids the tester having to perform the text entry and mouse-clicking needed. However, the action recording will not perform any validations of the expected results; that must be done manually.
The next facility is that a Coded UI test can be created from an action recording. The new Coded UI test does not included any validations of the expected results but the facilities of Coded UI can be used to assertions that can make the test fully automated. Having created a Coded UI test it can be linked back to the test case and will then be seen in the "associated automation" part of the test case. The linkage is created via the "Team Explorer" window in Visual Studio.
The order of events stated in the question suggests that the Coded UI test was created without using an "action recording"; which is a perfectly valid approach. The Coded UI test was then linked to an MTM test case. MTM has no mechanisms to decode the Coded UI test to create the test steps.
It would be possible to create a test case in MTM and specify its test steps but have an associated Coded UI test that does something different.
I have a MSFlexgrid in my application where i have rows and columns and I tried to automate using CodedUI. And I am trying to spy the cells inside the MSFlexGrid but CodedUI is unable to spy the cells and it shows as below when tried to spy the cells it shown as Client as a ControlType. So, please help me to resolve this.
That's an ActiveX control. I don't think Coded UI has built in support. You can try the options here MSDN SOCIAL
First option, not very reliable, click the grid control in specific coordinates. It will work if you always have to select the top row and the grid sise doesn’t change rapidly.
The second option, much better functionality requires a lot of effort. You will have to wrap the grid control with a shell that implements an accessibility API to make it testable. It is a lot of work and I wouldn’t have suggested the first option if it wasn’t so difficult.
In VS2012 RC, I noticed that the test list editor, tests view and test lists are absent.
I have an ordered test list - how do I run this within VS2012?
Normally, I would go to the test view, select the ordered test list, and run it.
But without the test view, what do I do?
From the new Test Explorer window, all the tests appear in the 'Not Run' section. When I attempt to run the test associated with the ordered test list, I get this error:
An exception occurred while invoking executor 'executor://orderedtestadapter/v1': Cannot find the test 'PhaseOneAdminLogonTest' with storage '..\bin\debug\codeduisanity.dll'.
Is there any way around this?
I was hoping to be able to start automating my tests using VS2012.
Looks like when projects are upgraded from VS2010, the ordered test lists aren't upgraded too. I created a new ordered test list, and added the same items, then the tests worked.