<html>
<head></head>
<body>
<iframe id="casesFrame" width="99%" height="418" frameborder="0" src="../cases/main_init" name="casesFrame" style="">
<html class=" ext-strict x-viewport">
<head></head>
<body id="ext-gen3" class=" ext-gecko ext-gecko3 x-border-layout-ct">
<ul id="ext-gen37" class="x-tree-root-ct x-tree-arrows">
<li class="x-tree-node">
<a class="x-tree-node-anchor" tabindex="1" href="" hidefocus="on">
<span unselectable="on">New case</span>
</a>
</li>
</ul>
</body>
</html>
</iframe>
</body>
</html>
I have the following structure in my page, but I get error while performing an event "Click" link "New Case".
I am using the code following in "Test Studio":
Browser casesFrame = Manager.ActiveBrowser.Frames.ById ("casesFrame");
HtmlAnchor NewCase = casesFrame.Find.ByExpression <HtmlAnchor> ("InnerText = ~ New case", "tagname = a");
Assert.IsNotNull (NewCase);
newCase.Click (); //Does not perform the event
Help Please.
Hi,
We are using Telerik automation framework integrated with visual studio. Even though we are giving correct property name for text block, We are not getting text block content for WPF application We need to recognize text block. Could you please give the solution related to this requirement.
I am using NUnit with a variety of categories that work fine with Nunit_Console. i.e. /include:Legacy /exclude:Slow
How do I set those options in the Telerik Test runner?
Hi,
I was trying to run automated tests on Windows 8 but it doesn't look to be able to run on IE or Forefox, IE opens but freezes there I can't do any action on it, FF doesn't even open, Chrome looks to work perfectly.
I'm writing a decorator (to implement a Retry attributes for NUnit tests). Everything runs fine when executing with Telerik JustTest -- except:
* "Not Executed" is reported
* Stepping thru in debug, "Run" is never called
Using NUnit 2.6. I have read that Resharper has issues in this same area and there are workarounds. We run Nunit for deployment builds, and I would like to be able to run the tests in VS.
public class RetriedTestMethod : NUnit.Core.Test
{
private readonly int requiredPassCount;
private readonly int tryCount;
private readonly NUnit.Core.Test backingTest;
public RetriedTestMethod(NUnitTestMethod test, int tryCount, int requiredPassCount)
: base((TestName)test.TestName.Clone())
{ //executes in debug
backingTest = test;
this.tryCount = tryCount;
this.requiredPassCount = requiredPassCount;
}
private static bool TestFailed(TestResult result)
{
return result.ResultState == ResultState.Error || result.ResultState == ResultState.Failure;
}
public override TestResult Run(EventListener listener, ITestFilter filter)
{ //Never called
var successCount = 0;
TestResult failureResult = null;
for (var i = 0; i < this.tryCount; i++)
{
var result = backingTest.Run(listener, filter);
if (!TestFailed(result))
{
if (i == 0)
{
return result;
}
if (++successCount >= this.requiredPassCount)
{
return result;
}
}
else
{
failureResult = result;
}
}
return failureResult;
}
I attached the set of files with unit tests.