Telerik Forums
Testing Framework Forum
0 answers
15 views

One of the activities I will be working on in the lab is a test framework. A few examples of features are:
*  Basic instrument control (E.g. Multimeters, Power supplies, Signal generators, Scopes, etc.);
*  Executing preprogrammed test sequences (created by one of the test engineers);
*  Register control over multiple data interfaces (JTAG, SPI, etc.)
The exact implementations of the different mentioned features are not important at the moment. However, important is that I do not know exactly how this program will be expanded in the future. New interfaces may have to be added, or different functionalities are needed to support the increasing complexity of our test cases.
a)  Please try to explain some important structures or methods to cope with these expansions in general.
b)  Can you think of any methods to make it easier for the test engineers to compose above mentioned test sequences?
c)  What techniques would you use to develop such a program? (Programming language, framework(s), tools, etc.). Please explain your answer.

 

Can anyone please help me by providing a short/simple answers for those questions? Thanks in advance!

Filip
Top achievements
Rank 1
 asked on 01 Aug 2019
5 answers
31 views

I'm trying to run my tests in Jenkins. Is there a way to implement tests using Telerik Testing Framework to Jenkins? I couldn't find any information about this on the website. I only saw information for Test Studio and Jenkins. 

 

This is the error I'm seeing when I ran tests in Jenkins.

<ErrorInfo>
          <Message>Initialization method ReconciliationTests.DefaultCashTests.TestInitialize threw exception. System.TypeInitializationException: System.TypeInitializationException: The type initializer for 'ArtOfTest.WebAii.Messaging.Process.ExecutionMediator' threw an exception. ---&gt; System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..</Message>
          <StackTrace>    at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at ArtOfTest.WebAii.WebExtensions.StartPageProviderFactory.StartPageProviderFactory.RegisterProviders()
   at ArtOfTest.WebAii.WebExtensions.StartPageProviderFactory.StartPageProviderFactory..ctor()
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator..ctor()
   at ArtOfTest.WebAii.Messaging.Process.ExecutionMediator..cctor()
 --- End of inner exception stack trace ---
    at ArtOfTest.WebAii.Core.Manager.SetNewBrowserTracking(Boolean enable)
   at ArtOfTest.WebAii.Core.Manager.Start()
   at xxxTests.xxxTests.TestInitialize() in C:\Users\Public\Documents\Jenkins\workspace\xxx\xxxTests\xxxTests.cs:line 33
</StackTrace>
        </ErrorInfo>

 

 

Please see the attachment for build set up in Jenkins. 

Elena
Telerik team
 answered on 09 Jul 2019
1 answer
845 views
I've got a RadComboBox that I'm trying to clear the selection on. There doesn't seem to be a method on the combo box itself to do it, and I can't find a way to get ahold of the "Clear Selection" button I've enabled on the combo box. The SelectedIndex property isn't nullable, so I can't do that, and it doesn't have a "SelectedValue" property.

Surely there's got to be an easy way to do this.
Tunde
Top achievements
Rank 1
 answered on 25 Jun 2019
6 answers
29 views

Hi, 

My problem concerns handling OpenFileDialog. I have a TestMethod that consists of 3 separate methods (e.g. A,B and C) which are doing next steps of whole process. Step C should handle OpenFileDialog and it does this when acts as a separate test but when I run everything in one test, the step C can't handle OpenFileDialog. Sometimes it happens that it will catch and handle this window, but in most cases it throws a exception (System.TimeoutException:...). I tried to use in different combinations Thread.Sleep but it doesn't work. Can it depend on the duration of the test? When I run each test individually, everything is fine all works as it should. 

var dialog = OpenFileDialog.CreateOpenFileDialog(Manager.Current.ActiveApplication, button, path, windowTitle);

Manager.Current.DialogMonitor.AddDialog(dialog);
Manager.Current.DialogMonitor.Start();
ClickAndWait(buttonClickName);
dialog.WaitUntilHandled();
Manager.Current.DialogMonitor.Stop();

 

I would like to emphasize once again that everything works when it performs as a single test
Best Regards

Plamen Mitrev
Telerik team
 answered on 13 May 2019
5 answers
146 views

The installer recognizes Visual Studio 2019 Community Edition for other products but not for Testing Framework.

See screenshot.

Elena
Telerik team
 answered on 08 May 2019
1 answer
15 views

I'm getting this error: 

Exception thrown executing coded step: 'Fill In Debit Card'.
Invalid input type 'Tel' for this control. Control was expecting 'Text'

when attempting to populate data in a field which for some reason is set up as TEL type.

Code below from website:

<input name="PaymentOptions.AccountNumber" aria-required="True" autocomplete="off" data-val="true" data-val-length="Please enter a valid account number, no longer than 8 digits." data-val-length-max="8" data-val-regex="Oops! Your account number should comprise only numbers. Please can you check it's correct? Thanks!" data-val-regex-pattern="^\d+$" data-val-required="Please enter an account number" id="AccountNumber" type="tel" value="">

 

This was working previous to the recent upgrade of Telerik - is there a way to fix this other than changing the web code to text type?

Could I revert to the previous version of Telerik? If so how do I do this?

Thanks

Elena
Telerik team
 answered on 02 May 2019
4 answers
18 views

Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicate, T target, Int32 timeout)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.GetIEFrameFromProcess(Process process)

 

Internet explorer opens and stay blank and finally test failed.

Same telerik automation code is working on one Win10 machine but not working on another win10 machine.

Solution tried - calibrating IE, building on x86 platform

Wesley
Top achievements
Rank 1
 answered on 29 Apr 2019
14 answers
161 views
Hello,
I've been cruising the forum for some time now looking for a solution to the problem I'm facing. I see many threads similar to the issue I'm seeing but I have yet to find a solution in those threads that solve the problem.

I've exported the tests to run independently from Test Studio using nunit in the console. I've gotten the test to kick off and run filling out a login form up to the point of clicking the Login button. I can see the button, verify its clickable, highlight it, etc. However, when I go to click it using User.Click(), nothing happens. I've enabled annotations and it shows the click action occurring, yet the button is not clicked

I've tried clicking it through FindName:
this.App.FindName<Button>("PART_LoginButton").User.Click();

I've tried through the exported method from Test Studio:
Pages.<PageName>.SilverlightApp.PARTLoginButtonButton.User.Click();
 Neither of those two methods work. In addition, I've also ensured that settings.Web.EnableSilverlight = true, tried refreshing the dom tree, clicking the silverlight app bounds to ensure that its selected, double clicking (single clicking twice), refreshing the visual trees, and even sleeping before clicking the button to ensure no AJAX type code is affecting the button.

Here is the source code of the button itself:
<button Name="PART_LoginButton" AutomationId="PART_LoginButton" Uid="65158171">
  <grid Uid="34157240">
    <border Name="Background" Uid="57177053">
      <textblock Name="textBlock" AutomationId="textBlock" Uid="44831437">Login</textblock>
    </border>
  </grid>
</button>

Any assistance to get this code clicking that button would be greatly appreciated!

Thank you,
Tim Harrison

Edit: Added button source code.
Ivaylo
Telerik team
 answered on 26 Apr 2019
5 answers
17 views
I am building helper methods to reuse the code.   I wanted to user Generic object reference in helper methods so that user can specify whether object is of  HtmlInputSubmit or HtmlInputText.

To elaborate my requirement, i would writing below code in helper method

                T _WebElement = _Manager.ActiveBrowser.Find.ById<T>(locator);

While invoking helper method, i would write like

            TelerikElement<HtmlControl> searchCriteria = new TelerikElement<HtmlControl>(wDriver);
            searchCriteria.FindWebElement(LocateBy.Name, "q").SetValue("Telerik Testing Framework");

Error:
There is no boxing conversion or type parameter conversion form T to ArtofTest.WebAii.Controls.Control.

Is there any workaround to implement this logic.
Elena
Telerik team
 answered on 16 Apr 2019
5 answers
25 views

How to Compile ‘NUnit Extention.dll’ the sources against your version of NUnit

I am planning to use ‘Unit Testing Web Extensions with NUnit’ , I have gone through the user guide Link http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-nunit.aspx and I have installed NUnit(2.5.7) and downloaded the ‘NUnit Extention surce file

But how to Compile the sources against version of NUnit. Please guide me the steps how to do the compilation and I am using Visual Studio 2012.

Elena
Telerik team
 answered on 02 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Liu
Top achievements
Rank 1
Iron
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
George C.
Top achievements
Rank 2
Iron
Veteran
Top users last month
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Liu
Top achievements
Rank 1
Iron
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
George C.
Top achievements
Rank 2
Iron
Veteran