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

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.

Related

Is there a way to run tests without doing a full build in Xcode?

Is there a way to provide a small test window without performing a complete build in Xcode? I know that eclipse gives you a small preview window at the bottom of the IDE but I can not figure it out for Xcode. I am mainly looking to test certain conditions and outputs that may not always print a value to the screen. Any suggestions?
Move your testable code into a framework that is accompanied by its own unit test bundle. Now testing involves just clicking the little run button next to a unit test. You can run a single test method or a whole suite, depending on your needs. When you run a test, the entire app does not need to be built — just the framework; and the app itself never runs and the Simulator never opens. And the results appear in the little Xcode Console pane at the bottom of the project window (and are preserved also in the Report navigator).
This is an excellent way to organize your app structure. I routinely use this kind of architecture.

Google Assistant Hello World Draft Project not updating

Very new to Google Actions. Testing out tutorial stuff.
I have tried this in a couple of test projects just to double check. After initial run of any project I do not get any updates on draft projects. No changes show up in draft projects for me for both simulator and real device.
Started new project
Even blank project has basic conversation telling you where to add things next.
Change text.
Notice prompt does not change in testing environment.
In below pictures I have changed the words "hello world" with "Hey Dude" for both fulfillment and console output. I would expect Testing Prompt to respond with "Hey Dude from fulfillment and Hey Dude from the console!" But it does not. Instead it does not reflect any recent changes.
I think there may be two slightly different (but sometimes related) issues going on here.
The first is that there are known problems with the simulator being slow to pick up on updates, or them not seeming to show up. The second has to do with making sure you're deploying changes from the build-in code editor.
I don't have a clear answer to the first problem, although I know they're looking into it. I find that I can make some changes and they may not be noticed, but I know they have been picked up if I see the "Your preview is being updated..." spinner appear. There are other spinners that sometimes appear, but unless it explicitly says that it is being updated - the updates aren't always picked up. (Sometimes they are, however.)
Usually, if I don't see this, I'll go back and force an apparent change (delete a character from a webhook handler name, then add it back) and go back to the simulator. In general, this time it will say it is updating.
If you're using the Cloud Functions editor, you need to do three things:
Save the changes. You'll do this by clicking the "Save Fulfillment" button, but this only saves it so you can leave the editor. It doesn't mean that the simulator has access to it yet.
Deploy the changes. This deploys your code to Cloud Functions so they can be run. Note in the illustration that it says the code is saved, but not yet deployed.
Wait till the changes are fully deployed. Deploying takes time, and until it is completed, it won't be available in the simulator. While deploying, it lets you know.
Once it has deployed, however, the message changes, and you the impacts should be available through the simulator (although you may still need to see the "being updated" message to be sure).
Remember, however, that you don't need to use the "Cloud Functions editor" in order to deploy a webhook. You can deploy a webhook on any web server where
The host is public (so has a public IP address that Google can reach)
It can handle HTTPS with a non-self-signed certificate
You can even deploy yourself to Cloud Functions for Firebase, which is the same service that the Actions Builder uses. This way you have the URL set once in the Actions Builder and, once it is set, you won't need to change it.
But you'll still be able to change your code by managing your own deployment separate from Actions Builder.

How to name a pipeline?

When I create build pipeline they all have the same name in the builds sections of AP but with a number in parenthesis after.
How can I give it a custom name?
I googled it and the answer was to use visual designer but for me there is no longer an option to switch to visual designer. I tried adding a name property to pipeline but this just name the build that is run, not the build configuration.
I would like to be able to see which of my builds I am running before running it.
Yeah that feature is pretty hidden at the moment. I suppose it'll move to the settings panel soon, but now, depending on the pipeline features you've opted-in to, this is how to find the place to rename:
: in the upper right corner next to run
⚡Triggers
YAML

How to import test cases from Excel to VSTS/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

PerlUnit in Eclipse

If we click on Java perspective in Eclipse and right click on a Java project, we see “new” a JUnit file.On executing the test cases in JUnit we see red/green bar displaying failure/success of test cases.
I am trying to find a plugin that would add these two features :
In the perl perspective (provided by EPIC) , right-click on a Perl
project should list a new “t” file.
On executing perl unit the status of test cases should be displayed
using Reed/Green bar.
If there is no plugin is there a way we can do the same.
As far as I know, there is no EPIC plugin for this or even a more generic TAP-based test runner for Eclipse. Such a thing would be nice to have.
Rigging some sort of report on test success from a web page is pretty common. This can be done using a tool like Test::Harness which can be used to run your test or tests and return or output a report of how well your test run went.
From there, it's a matter of turning that into a red/green progress bar.
If you want to see the progress updated continuously during the test run, you'll have to run and parse the test files more directly as they run. All Perl tests output TAP format, which is a standard format with specs available here:
http://testanything.org