Telerik Forums
Testing Framework Forum
5 answers
222 views
Hi
I need an offline installer for the Testing Framework. The online installer redirects me to http://www.telerik.com/offline-trial-download. But there is no link to the testing framework. 

Am I missing something?

Thx!

with best regards,
Nicolas
Cody
Telerik team
 answered on 22 May 2015
1 answer
75 views
Hi,
We are using Telerik testing framework integrated with visual studio. 
We are trying to capture "Text Block" object in our WPF application by giving its valid  property name,but failed to recognize it.
Could you provide any solution to recognize the Text Block object.
Please find the attach file for more info.

Thanks in advance.
Boyan Boev
Telerik team
 answered on 20 May 2015
1 answer
66 views
Hi,
We are using Telerik automation framework integrated with visual studio. 
We are trying to capture "Text Block" in our WPF application by giving its property name,but failed to recognize it.
Could you provide any solution to recognize the Text Block object. Thanks in advance.
 
Boyan Boev
Telerik team
 answered on 20 May 2015
1 answer
94 views

<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.

Boyan Boev
Telerik team
 answered on 18 May 2015
3 answers
117 views

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.

Boyan Boev
Telerik team
 answered on 17 May 2015
1 answer
75 views

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?

Konstantin Petkov
Telerik team
 answered on 15 May 2015
2 answers
104 views
Hi,
We are using WebAii for Silverlight Automation testing
In our XAML we have a button that when clicked creates a form with a text box (System.Windows.Controls.TextBox) that is given focus with a default value that is selected.

Given we have found the element (Xaml.Get<ArtOfTest.WebAii.Silverlight.UI.TextBox>("Name=InputTextBox"); 
Is there a way we can test to check that the element
1) Has Focus
2) Has text in it that is selected


Thanks.
Luke
Top achievements
Rank 1
 answered on 13 May 2015
1 answer
57 views

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.

Ivaylo
Telerik team
 answered on 12 May 2015
1 answer
113 views

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.

Boyan Boev
Telerik team
 answered on 30 Apr 2015
8 answers
120 views
this code throws an serialization error only in FF, this works just fine in chrome/IE
                    result = Actions.InvokeScript<string>("document.activeElement.id");

error:

System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type System.String. End element 'root' from namespace '' expected. Found element '__ko__1427881981050' from namespace ''. ---> System.Xml.XmlException: End element 'root' from namespace '' expected. Found element '__ko__1427881981050' from namespace ''.
   at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)
   at System.Xml.XmlExceptionHelper.ThrowEndElementExpected(XmlDictionaryReader reader, String localName, String ns)
   at System.Xml.XmlBaseReader.ReadEndElement()
   at System.Xml.XmlBaseReader.ReadElementContentAsString()
   at System.Runtime.Serialization.XmlReaderDelegator.ReadElementContentAsString()
   at System.Runtime.Serialization.Json.JsonStringDataContract.ReadJsonValueCore(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
   at System.Runtime.Serialization.Json.JsonDataContract.ReadJsonValue(XmlReaderDelegator jsonReader, XmlObjectSerializerReadContextComplexJson context)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)
   at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   --- End of inner exception stack trace ---
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(Stream stream)
   at ArtOfTest.WebAii.Core.Actions.InvokeScript[T](String script)
Ivaylo
Telerik team
 answered on 21 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?