Hi Telerik Team,
i need to Serializ the testresult of a automation Test. The result is a trx file. I currently use the class Testreult (ArtOfTest.WebAii.Design.Execution.TestResult), but I always get an exception. The innerException is ({"There was an error reflecting property 'Parent'."}).
what should I do to serialize the result of the test?!!!!
HERE IS MY CODE AND THE TRX-File
i need to Serializ the testresult of a automation Test. The result is a trx file. I currently use the class Testreult (ArtOfTest.WebAii.Design.Execution.TestResult), but I always get an exception. The innerException is ({"There was an error reflecting property 'Parent'."}).
what should I do to serialize the result of the test?!!!!
HERE IS MY CODE AND THE TRX-File
//Serializing
public static ArtOfTest.WebAii.Design.Execution.TestResult GetConfigEnvironment(string strPath)
{
XmlSerializer ser = new XmlSerializer(typeof(ArtOfTest.WebAii.Design.Execution.TestResult));
using (var settingsFile = System.IO.File.OpenRead(strPath))
{
return (ArtOfTest.WebAii.Design.Execution.TestResult)ser.Deserialize(settingsFile);
}
}