MTM wrong video attachment in test result - tfs

We have an automated test run (TFS 2013, MTM 2013) and in the Test Settings we have configured 'Screen and Voice Recorder' to be on.
The problem is that the wrong video is displayed when opening an attachment after a test run.
For example, the latest run is from 29/8, and when opening a video attachment, the video that is opened is from 25/8.
Have anyone encountered this issue?
A few more points that might help -
For this run, we have a test controller and two test agents, Let`s call them 1 and 2. The test controller is installed on machine 1, and the problem only exists when opening an attachment from agent 1. When opening an attachment from agent 2 - everything is ok.
Both machines are Windows Server 2012 R2 (Datacenter).
Thanks in advance!

What about user's who is running services? Are they domain, local accounts? Test controller stores test result data in user profile directory. Maybe test controller and agent are running on the same user?
MTM > LAB > Controllers has RMB menu to clean up local store. Try this and run test again. Controllers stores few test runs of test results as backup

Related

VS controller 2017 error on configuration

I am trying to set up the VS controller on a virtual machine, but it is giving me an error.
I have specified the lab account on the Configure Test Controller, but when I try to apply settings it is showing the error below.
Since you have not configured lab service account, make sure
a) test agent can communicate with the test controller,
b) test controller and test agent can access the build drop location, and
c) Microsoft Test Manager can connect to the test controller during manual test runs. Manual steps might be needed to setup the permissions mentioned above
Both users that I am using, are local admin, on the TFS server and also on the machine that I have installed the VS controller.
VS controller configuration
Can you someone help on this?
Tks in advance.

TFS 2015 test case outcome = "None"

I'm using TFS 2015 to run automated regression tests nightly. There are over 100 tests in the suite but each night 1 of them, usually the same one, shows up with the outcome "None".
If I look at the test log I see that the test does not fail. If I remove this test from the suite then on the next run the test above that one, in code, will show as "None" but it also passes.
What could cause this and how do I determine the cause?
We upload results after finishing execution of the set of tests given
to an agent. From #1410 it sounded like all your tests are
currently going to 1 machine, which would mean all results are
uploaded only at the end. Also, the Test Results tab in Build Summary
(image you pasted above) only shows results once the run is complete.
You can go to the Runs tab in the Test Hub to see test results as and
when they are available, even for in progress runs (image below)
Source Link
So in other words, you have to wait for the full completion of the process, the root cause of the status none issue maybe either your enitre test process haven't finished yet or something special cause the process not finished.

TFS 15 RC2 - Build Agent Publish to Packages Feed

I've been unsuccessful with having my build publish to the new Package Feed in TFS 15 RC2. I'm currently running TFS offline and using a local build agent. I've followed these instructions to no avail.
Since the last image in those instructions is cropped around the URL, and that URL was specific to VSTS online, I thought mine might be wrong. So I tried the following (none worked):
Using http://[computername]:8080/tfs/DefaultCollection/_packaging/{feedName}/nuget/v3/index.json
gives an error when it tries to prompt for input of credentials in
interactive mode.
Using http://[computername]:8080 gives a 404.
Using http://[computername]:8080/tfs gives same error as #1.
Using http://[computername]:8080/tfs/DefaultCollection gives same error as #1
Since some errors happened while trying to do an interactive prompt, I thought it might be a permission error. The following links give some information, but it seems like the Build Agent should already be in the right category for publishing permissions.
https://www.visualstudio.com/en-us/docs/package/feeds/common-identities
https://www.visualstudio.com/en-us/docs/package/nuget/auth
Anyone happen to know a solution? Thanks!
EDIT
The build agent was running as NT AUTHORITY/Network Service, which is the default of the agent config. I removed this agent and configured it to run under my user account, which is an admin on the system. After doing so, I was able to publish without issues to the Packages using the URL in #1 (as Cece below has written). Is there something else I need to do to get the permissions set for the default agent?
The Internal Feed URL is the NuGet Package Source URL for the feed you want to publish to.
When you create a new Feed, navigate to your feed, and select Connect to feed. You'll see the NuGet package source URL. The format should be like: http://{tfsserver}:8080/tfs/DefaultCollection/_packaging/{FeedName}/nuget/v3/index.json

Allure + Jenkins + TestNG: xUnit not showing test cases in suite when run on Jenkins but shows on local

The allure report generated on Jenkins does not show me the test cases but the one generated on my local machine does. Are there settings that needs to be changed? (See screenshot here https://www.dropbox.com/s/8wut68oze2xq7s2/Capture.JPG?dl=0)
Thanks
Silly mistake, I didn't click on the necessary tabs. They are not clicked by default as they are in local for some reason

How can I report the test results from a TestNG/Maven/Jenkins tests, via Email and attach screenshot?

I have some SeleniumWebdriver/TestNG/Maven/Java continuous integration tests, that I run in Jenkins.
Every time a test fails, a screenshot of the error is created.
How can I configure Jenkins to send an email to certain people and attach the screenshot upon failure?
The screenshot is located in this directory:
/mnt/www/jenkins/jobs/Integration tests/workspace/target/surefire-reports/
and its name is generated as a combination of a timestamp and the error that has occured, like this:
2013-7-6-12-1-30-UnabletolocateelementmethodlinktextselectorApprove.jpg
Screenshots arent automatically deleted, so there could be quite a few screenshots in that dir.
So, how can I make Jenkins send me the report with the screenshot attached?
OR Can I make TestNG do that? How?
Actually, no need to work with Jenkins, it can be done within the code of the test itself.
Generate the screenshot as described here:
Selenium Webdriver/TestNG/Maven/Xvfb - take screenshot on fail?
then install the Java Mail API and a SMTP mailer service on your computer and make your code send email with the screenshot as an attachment upon failure.

Resources