// Execute test 'Verification'
try
{
ExecuteTest(
"C:\\pathhToTest
"
);
}
catch
(NullReferenceException e){
Log.WriteLine(
"NullRef"
);
}
catch
(TimeoutException t){
Log.WriteLine(
"Timeout exception...."
);
}
SubTest
[CodedStep(@
"Navigate to vanity url]"
)]
public
void
SubTest_CodedStep()
{
// Navigate to : 'http://- DataDriven: [$(Vanity)].com/' - DataDriven: [$(test)]
String vanity = ((
string
)(System.Convert.ChangeType(Data[
"Vanity"
],
typeof
(
string
))));
String fullUrl =
"http://"
+ vanity +
".qasb5.com"
;
Log.WriteLine(
"NAVIGATING TO: "
+ fullUrl);
ActiveBrowser.NavigateTo(fullUrl,
false
);
}
[CodedStep(@
"Verify element 'DealerLogoPanelDiv' 'is' visible."
)]
public
void
Verification_CodedStep()
{
// Verify element 'DealerLogoPanelDiv' 'is' visible.
Log.WriteLine(
"starting test findDealerLogo"
);
HtmlFindExpression expr =
new
HtmlFindExpression(
"id=~DealerLogoPanel"
);
ActiveBrowser.WaitForElement(expr, 4000,
false
);
Element e1 = ActiveBrowser.Find.ByExpression(expr);
HtmlControl ctrl =
new
HtmlControl(e1);
Assert.IsTrue(ctrl.IsVisible());
}
I hope I provided enough information and would appreciate any help!
Mario
var myApp= Pages.TelerikTreeViewFor.SilverlightApp;
Telerik.WebAii.Controls.Xaml.RadTreeView tree= myApp.XTreeViewRadtreeview;
tree.InvokeMethod(
new
AutomationMethod(
"ExpandAll"
,
typeof
(
void
)));
IList<Telerik.WebAii.Controls.Xaml.RadTreeView> items = tree.Find.AllByType<Telerik.WebAii.Controls.Xaml.RadTreeView>();
int
nrNodes= items.Count();
Log.WriteLine(
"Number of nodes: "
+ nrNodes);
Hi Telerik Team,
we use Cruise Control to schedule the telerik autommated Testscripts. To schwo the results of the tests in Cruise Control, i use an XML-Schema to parse the XML-Results.
The new Version of Telerik.Test-Studio (Version: 2013.1.911) change the strukture of the XML-File for the testresults (i mean the .trx files). So that we no longer the seceond "WebAiiTestResult" with the "AutomationStepResults" and there "Item" have.
The neu Version ot telerik return the result as a single string (se below)
The old .trx-File have fhe folow XML-Tag:
In the neu .trx-File there is only the XML-Tag:
<TestStudioResult xmlns="">{"__type":"ArtOfTest.WebAii.Design.Execution.TestResult","__value":{"Browser":1,"ExeType":0,"SeparatorLineCharCount":60,"Message":"Overall Result: Fail\r\n------------------------------------------------------------\r\n'14.11.2013 20:17:39' - Using .Net Runtime version: '4.0.30319.1008' for test execution. Build version is-------------……. (etc.)
<TestStudioResult>
Would you Please fix this problem. Because otherwise we can’t display the results in CruiseControl
I have also uploaded the two .trx-Files (the old one and the new one) and the XSL-Schema.
Best regards
Mostafa