How to import test cases from Excel to VSTS/Azure DevOps - azure-devops

I have a lot of test cases which are currently in Excel that I need to migrate those to VSTS/Azure DevOps. Can someone recommend me a good way to do that.

This is a manual way but maybe it will be useful for you.
On IE or Edge. You can try the grid view on your test plan and just copy/past test cases:
In test suite select creation of test cases with grid view:
Copy/past you test cases and save edits:

Install Team Foundation Server Office® Integration (Excel Add-In)
Open Excel and go to Team Tab and then click on New List
Connect to your TFS
Choose Input List then click OK
Click on choose columns so we get all the necessary ones for creating test cases
The Work Item item is set to "All Work Item Types", change this to "Test Case"
Click Add Required and you should have about 8 columns, then click ok
Now you should see a slightly different excel worksheet. -Change the work item type on the first line to "Test Case" and it should auto-populate the defaults

I searched for almost an entire week before getting this to work and there were no answers online so, I thought I would share.
Install the Test & Feedback plugin for Chrome. (*this may or may not be necessary but it worked for me and I have this installed)
Navigate to the *old view of the Test Plan.
Note: To confirm you are in the 'old view', a blue link in the upper right hand side that says 'Switch to new view' will be displayed.
Note: When you hover over the test icon in the left navigation bar, choose the option "Test Plans" not "Test Plans*". The latter is the new view.
Select the folder that contains the test cases on the left and wait for the Test Cases to populate in the pane on the right side.
Click "Offline Test Execution" at the top of the pane above the Test Cases.
Choose to export the entire Test Plan or entire suite of Test Cases, etc., and click 'Export'.
Note: If you try to export the entire plan or several folders worth of test cases and the export fails, choose less test cases at a time to export.
Hope this helps.

I was able to upload the test cases including the test steps using Microsoft Test Manager and which can be accessed through Azure devops.
If you guys have Microsoft Test Manager, please find the required information at the below link.
https://github.com/premboyapati/Test-Case-Migrator-Plus

Related

Talend Open Studio - How to create brand new project

I need to create a brand new empty TALEND OPEN STUDIO project and then simply import some jobs from another already existing project.
Can someone help me on this please.
Many thanks !
Open Talend Studio
You will be prompt with a small window which will have few options like
Select an existing Project
Create a new Project
and other options. You can click on Create a new project and then you can a give a name to that project.
Then your Talend window will be opened. On the left side of it you will have many options like Business models, job designs, contexts etc. Right click on Job designs and you will get the options of import items along with other options like export items etc. Click on it. You will get a window asking for your root directory of all the jobs. If you already have some archived files in a working environment then you can do that also, but I guess here it is not that case. For a normal job go with select root directory option. Select your directory where you have jobs. You can also import any particular job also. You have few buttons on right side saying Select all, Deselect All etc. These options are for parameter files and schema repositories etc. associated with your Job which you are importing. You can select or deselect according to your need. That's pretty much to import a simple Job.
There are many other options we will have to consider while importing jobs and creating new projects according to environment where we are working with Talend but for using Talend Open Studio for simple Jobs, all the above instructions would be fine.
PS - I am sorry I can't provide any graphics for it due to some reasons. But if you follow along with above instructions, it will work.

In Visual Studio Team Services, is there a way to force the board view to recognize existing tests?

In Visual Studio online, I have a big list of requirements on the board. All of them have Test Cases attached as linked items via a Tested By link. However, they're not showing up.
Both these items have a test attached, by the same link, but only one is recognized by VSO - illustrated by the potion icon.
I got the top one to pull through to the board by clicking on the ellipsis and choosing "add test" and then putting in a nonsense title. At this point the existing test appears with the requirement/bug and I can remove the nonsense one.
This is cumbersome and time-consuming. Is there another way to get VSO to recognize the attached tests for a test plan?
You need to have a test suite for that requirement. On the "Test" hub, you can add a requirement-based test suite for your work item. Any work items added to the test suite automatically appear on the backlog board.
What you're inadvertently doing when you add the "dummy" test is creating a requirement-based test suite.

Eclemma not offering report exportation option

I'm sure that I'm making some kind of rookie mistake, but I'm using EclEmma for the first time right now and can't figure out, despite checking numerous guides, how to export my coverage report. For reference, this is on Windows 8 x64 and using Eclipse Kepler (let me know if you need any more information than that).
I can see that the EclEmma has successfully run, and I can get into and play with the Coverage view as below:
However, right-clicking anywhere in the report offers only an option to "Export Session," never "Export Report," and going through my File -> Export dialog doesn't seem to do any better. I tried exporting the session as XML and a few different configurations, but it never got the code coverage report that I was looking for.
Is there something I'm doing wrong or need to ensure before I can export it? Thanks in advance.
As you do before, click right button and select "Export Session".
Type "report" and you can find the "coverage report" option.
Click "next"
You can get the Export report panel.

sync custom entities using force.com ide?

right now we are using svn to share code for our force.com/visualforce project. It works great controllers, components, pages and static resources.
The problem is it seems the salesforce.schema file is not really a local file, its a placeholder that checks your server and tells you your current schema.
We want to baseline our schema changes/updates to a file so we can share in svn.
I found this:
http://boards.developerforce.com/t5/General-Development/Custom-Objects-in-Force-com-IDE/td-p/445363
But we cant seem to figure out what do do/how to get it to work.
So in a nutshell, we are looking for a way for Developer A to create a custom schema object in their own SF Sandbox, somehow get this info into a file in svn (ideally through the force.com ide), then check it in so developer B can check it out and apply it to their server. (the same way we do for code).
Any help would be great!
thanks
Joel
Ok, we finally figured this out through trial and error:
To make this work:
right click on project, click "Force.com/Add Remove Metadata Components"
go down to custom ojbjects, open that up, make sure all your custom objects are checked, click apply, then say "NO" to dialog
then right click on src and click "Force.com/Syncronize with Server, find your objects, and click "Apply Server to Project"
now your files will be local, check them into SVN and you are golden.

Excluding/Disabling Validation in Eclipse

I have the (mis)fortune of having a large project source-base in which I am working primarily on PHP and JavaScript. I have to have the full project area as the project root in Eclipse, but unfortunately this includes several directories that drive the validation built into WST/DLTK/etc. nuts.
I have tried disabling all validators in the project properties. I have gone into the validators one at a time and added rules to the "Exclude Group" set to exclude the specific folders. I have removed the folders from the PHP build path in the project properties. And yet, my Problems view/tab is still littered with thousands of red flags that stem mostly from a folder that we use to keep copies of external elements (Apache, PHP, etc.). You know, typical "have a copy of the specific versions we currently use" sort of thing.
The signal-to-noise ratio is so bad that I'm unable to use the view at all, which is a shame. If I'm not going to have the benefits of the IDE, I might as well be using vim for this (I use it for other stuff, but for this codebase a good IDE is a better choice, providing I can get it to work). It seems to me that it would be an obvious feature to be able to right-click a folder in a project and select "Exclude from Validation", but alas there is no such feature. Is there another way to get the validators (PHP, HTML, etc.) to ignore the folders I need ignored?
Tried solution;
Right click project
Select properties
Select validation
Check Enable Project specific settings
On the XML Validator row, click the '...' button
Select Exclude Gruop
Click Add rule
Select 'Folder or file name'
Click Next
Select files or folder which are not validated.
Click Finish
Click OK
Click OK
This solved my problem. Because eclipse validation gives error for generated GWT files.
Best regards.
I came upon this question while looking for the same answer. I will list the steps I did here and hopefully it will help someone in the future.
I am using Eclipse 4.1 and I do the following to exclude validation for specific xml files. I am sure if you configure the different validators it will work for other files as well.
Go to Preferences -> Validation
Find the Validator you wish to change and select settings (not all of the validators have settings, hopefully yours do).
In the settings you can add an Exclude Group where you can add a rule to specify to exclude the validator for specific extensions, folder or file name, project nature, facet or content type.
I have Eclipse for PHP Developers and I was dealing with the same issue.
In addition tot he excellent answers above, I have one more suggestion.
My first recommendation is not to use Aptana unless you actually want those validators (as they are nearly impossible to turn off from my experience).
Beyond that, go to File -> Properties -> Builders, and deselect "Validation" and "Script Builder" and "JavaScript Validator".
So far it's helped speed up some operations tremendously.
I also recommend disabling "Automatic Build". Because you're using PHP, the odds that you actually need it to build anything if you don't want validation is slim.
In the main menu, go to Project and uncheck "Build Automatically". You will want to build your project every now and then by right clicking on the project and selecting "Build Project".
All the above steps have helped me get the basic editor, which is exactly what I wanted.
I used to exclude resources from validation via project specific Exclude Group (as the most answer here suggests). But in case anyone is still having problems with disabling validation for a specified folder in 2014 - just mark the folder resource as Derived:
This should disable validation for that folder.
If you are using EGIT you might also want to disable automatic inclusion of derived resources in .gitignore:
It is not really possible to select a directory, at least under Windows.
After having pressed Preferences->Validation->Settings->Add Exclude Group->Add Rule->Folder or filename->Browse Folder->(selecting some directory)->[OK]
The "Browse for folder" dialog is being closed, with the "File or folder" field staying empty.
I had the same problem with the web app i'm developping.
I ended up disabling automatic build, and building once a day (Project->Build automatically), that way i still get the benefits of code completion from libraries, while speeding up the program on older computers.
I found in the project properties there is a Builders category. In the list of builders I had a JavaScript Builder. I deselected this builder and all my annoying javascript validation woes went away.
this worked for me:
Properties > Builders section and unchecking the corresponding box. https://bugs.eclipse.org/bugs/show_bug.cgi?id=317833
seems to be a bug in some versions of eclipse.
There are more gloabal validation parameters. You can suspend all validation (or only the ones you don't need) by going to:
Window > Preferences > Validation.
Here, check the box "Suspend all validators".
Alternatively, uncheck the validators you don't need from the list below.
A full build will be requested which might take some time. But Eclipse will run a lot faster afterwards [But without validation of course]
http://www.flickr.com/photos/jesuspresley/5094048124/
Solution.
Go configure what's displayed in the Problems View like lothar proposed, create new custom filter and in "Scope" area choose "On working set". Now press the button right below this option to configure what working set would it be: in working set selection pop-up hit the "New" button and mark all your project files EXCEPT those you want to exclude from validation. You might want to save this working set under convenient name, like "No_Validation_Set".
Summary:
1) working set excluding problematic files.
2) custom Problems View filter to operate on this set.
Issues:
when adding new files to project you need to update your working set, so they are validated too.
When I excluded files from validation for the project, my setting didn't seem to be recognised until I restarted Eclipse and cleaned the project.