TFS2015 vNext Test name limitation of 257 chars

Have been banging my head for a couple of days now. Trying to figure out what 

"No matching tcm test case result found for test case result given by agent"

actually meaning.

So after digging into the DTAExecutionHost.exe.log and made the same html query as the test agent. I found out that the rest API used by the agent. Chops the full test name after 257 chars. 

This will cause the test agent to have a test that is not found when the test result is going to be published to the TFS server. 

To fix this we simply shorten the test´s name to below 257 chars and the testrun now dint get aborted.

To simplify detecting if someone in the team adds a test with to long name. I wrote a simple test as below.

public class TFS2015MaxTestNameLengthTest
private List<string> _toLongNames;

public void InitTest()
var types = this.GetType().Assembly.GetTypes();

_toLongNames = new List<string>();

foreach (var type in types)
var methodInfos = type.GetMethods();
foreach (var methodInfo in methodInfos)
var customAttributes = methodInfo.GetCustomAttributes(typeof (TestMethodAttribute), true);

if(!customAttributes.Any()) continue;

var name = methodInfo.DeclaringType.FullName + "." + methodInfo.Name;

if(name.Length > 257) _toLongNames.Add(name);

public void AllTestMethods_NameToLong_NotFound()
Assert.AreEqual(0, _toLongNames.Count,_toLongNames.ValueToString());

Bug reported:

Visningar: 223


Du måste vara medlem i SweNug för att lägga till kommentarer!

Gå med i SweNug

Kommentar av peterson pete den 20 Maj 2018 kl. 11.51
Obtain Legit/Authentic passports,IDs,DLs,permits,certificates (WhatsApp +1
7657050792) )  
Guaranteed  passport,citizenship,Id cards,driver’s license,diplomas,degrees,certificates service available. Tourist and business visa services available to residents of all 50 states and all nationalities Worldwide. are unique producers of Authentic High Quality passports, Real Genuine Data Base Registered and unregistered Passports and other Citizenship documents.I can guarantee you a new Identity starting from a clean new genuine Birth Certificate, ID card, Drivers License,Passports, Social security card with SSN, credit files, and credit cards, school diplomas, school degrees all in an entirely new name issued and registered in the government database system..
We use high quality equipment and materials to produce authentic and counterfeit documents.All secret features of real passports are carefully duplicated for our Registered and unregistered documents.we are unique producer of quality false and Real documents.We offer only original high-quality Registered and unregistered passports, driver’s licenses, ID cards, stamps, Visa, school Diplomas and other products for a number of countries like:USA, Australia, Belgium,Brazil, Canada, Italian,Finland, France, Germany, Israel, Mexico, Netherlands, South Africa,Spain, United Kingdom and many more.
We are the best producers of quality documents, With over 12 million of our documents circulating over the world. We offer only original high-quality real passports, driver’s licenses, ID cards, stamps and other products for a number of countries like: USA, Australia, Belgium, Brazil, Canada, Italia, Finland, France, Germany, Israel, Mexico, Netherlands, South Africa, Spain, United Kingdom. This list is not full.
We also deal and specialize in the production of registered TOEFL, IELTS, ESOL, CELTA/DELTA & other English Language Certificates. Please note that Our IELTS & TOEFLCertificates are Original and registered in the data base and Can be verified.After your order is placed it takes just few days for us to get your details in the system. We specialize in IELTS,GRE,TOEIC,TOEFL,PET, FCE, CAE, CPE, BEC,YLE, KET,BULATS,ILEC, ICFE CELTA/DELTA & all Certificates. We also provide registration of these certificates in the right certification boards. We deal with hundreds of people across the world and we have discrete delivery available for all our clients. feel free to contact with us if you are interested in any of our documents To get the additional information and place your order, Contact us via email
Contact us on::::::::::::::::::::::::::::::::::::::::;( )
General Support:::::::::::::::::::::::::::::::::::(
General Support WhatsApp==== 
+1 (765) 705-0792
kindly visit our page on 

© 2018   Created by Jarle Skogheim.   Drivs med tekniken bakom

Emblem  |  Rapportera en händelse  |  Användarvillkor