Azure DevOps – automated test cases: How to remove unwanted test case associations - testing

I have a Visual Studio project with a Selenium test. For the test, I can select the “Associate to Test Case” option, but this displays a list of test case associations and it seems that I can only add test cases to this list. If I decide to replace the associated test case with another one, how can I remove from the list the one that I no longer want to be associated?
I created a new Visual Studio project with the test by copying a similar project that I had made previously, and I obtained a new project with an old test case associated. Why did this happen? What do I need to do differently to prevent it?

On Azure DevOps, find the unwanted Testcase you want to remove from the association.
Go to the tab "Associated Automation" and click on the "Clear" button.
Once you do this, your test case will be removed from the list of associated test cases inside VS.
Here is a picture of where you can find this button

Related

Is there a way to copy/move all test cases from one JIRA project to another, I have Xray plugin installed

I have tried different things and I know there are two ways of moving test cases from one Jira Project to another.
1. Manually move each test case by using option "move".
2. Exporting all the test cases in CSV format and then Import it to new project.
The problem with:
1st approach is that it is time consuming as there are thousand of test cases.
2nd approach- I don't see an option of exporting test cases in csv format, I only see xml, excel and printable. And while importing test case through "Test Importer" it only accepts csv format.
Is there a better way to move/copy test cases from one JIRA project to another?
You can do bulk edit and move all issues together. Here are the general steps:
Search using a query that gives all the issues you want to move(in your case it would look something like project = MyProject AND type = Test)
Click on the tools on top right corner and select bulk edit
select all issues you want to edit and click next
Select Move Issues from listed options and click next
fill required information and Jira should start moving all selected issues
Since there is no undo option, I would recommend moving one or two issue first to see it is working as you expected before making any bulk changes.

Unable to create new Test Plan in VSTS

For the past day, the 'New Test Plan' button has been missing from our VSTS UI inside the Test-Test Plans area. I also can't find anywhere else in VSTS giving the option to create a new test plan. (I'm sure there used to be a few places, but they were obvious, and now missing)
Could it be anything to do with star symbol showing in the UI after ' Test Plans* ', like some changes need saving somewhere before new test plans can be added? In which case, what changes should I be looking for to save?
Generally Test plan creation is limited to users subscribed to Test Manager extension or VS/MSDN subscribers.
Basic license users can only run tests. You need a valid Visual Studio
subscription (Enterprise, Test Professional or MSDN Platforms) or Test
Manager license ($52 monthly):
https://marketplace.visualstudio.com/items?itemName=ms.vss-testmanager-web
to create test plans.
See this thread : Can't add a new test plan
So please check if you have the license to create the test plan, and for an paid extension you must assign that extension to users who need access, so they can start using that extension's capabilities. Please see Assign paid extension access to users
Whatever, I can reproduce the issue on myside, seems it's an issue with the preview feature.
As a workaround you can create the Test Plan with MTM (Microsoft Test Manager) or REST API (Test Plans - Create). Both work for me, but the test plan will not display immediately after creating it, you may need to wait for several minutes to sync it.

Wanting to get rid of the Test Hub in TFS and integrate with Test Rail

Just wondering if there is a way to integrate TFS with TestRail to replace(get rid of entirely) the Test Hub within TFS to use TestRail to record Test Plans?
My concern with removing the Test Hub, would be if Test Rail can still reference IDs in Bug and Stories within TFS and vice versa?
You currently cannot remove the standard Hubs in Visual Studio Team Services / TFS or replace them with something else. You can enable an extension that either adds its own functionality under said hub as a separate tab or adds another Test Rail hub to the top level (if there is any) or write your own. Extensions currently cannot leave their sandbox to overwrite standard functionality.
There is nothing preventing anything from keeping track of work item numbers anywhere, so the second part of your question, whether it would have broken any form of integrations, that's unlikely.
If you are on TFS, you could try creating a custom process template that doesn't have the Test Case, Shared Step, Test Suite and Test Plan work item types, this will likely at least completely cripple the existing functionality. In the on-prem version you can also customize the files on disk, I've never tried, but it's likely that you could probably hack the test hub away. That would be a totally unsupported scenario through.

Using Team Foundation Server for QA / Testing

I have been playing around with TFS (Team Foundation Server) on my visual studio 2012.
I went to Work Items and I saw My Bugs,My Tasks,My Test Cases.
All are empty at the moment. I want to know how can I set up a test case in TFS > Work Items > My Test Cases? Or Add Bugs in My Bugs.
I also read somewhere - Cant remember now - You can actually edit the my test case screen to some of your own test case criteria.
Anyone know's about this or where I can start?
These are just Queries that run over all the work items. Users with appropriate permissions can edit them, but the changes will apply to the whole team.
You can copy and paste them from Shared Queries into My Queries and work on them.
The way they work is looking for any work item assigned to the viewer of the query (using a variable called #Me in the filter) that has the Bug / Task / Test Case Work Item type and is not closed.
Here's an example of "My Tasks" from my MSF Agile Project:
When you view the results, there is button in the top right called "Edit Query" to get this view.
You can create new bugs , or other work items by clicking on the team menu. You can then create new work items and assign them to yourself or other members of your team

Intellij running one test in TestNG

So my typical workflow is
I write a data driven test using TestNG in IntelliJ.
I supply hundreds of data items
Run the test and one or two of them fail
I see the list of passed/failed tests in the "Run" pane.
I would like the ability to just right click that "instance" of the test and run that test alone (with breakpoints). Currently IntelliJ does not seem to have that feature. I would have to right click the test and when I run, it runs the whole set of tests with hundreds of data points.
Is this possible?
TestNG supports this at the testng.xml level, where you can specify which indices of your data provider should be used. It's called "invocation-numbers" and you can see what it looks like by running a test with a data provider, failing some of its invocation numbers and looking at the testng-failed.xml that gets generated.
Back to your question: your IDE needs to support this feature in order to make it available in the UI, so I suggest you ask on the IDEA forums
The feature has been added as of Intellij 142.1217: https://youtrack.jetbrains.com/issue/IDEA-57906