Telerik Forums
Testing Framework Forum
3 answers
435 views

I'm new to WPF and C#, but have been able to build a simple prototype test automation project using Telerik Testing Framework and C# in Visual Studio 2019.

The application I'm testing uses rich textfield UI objects called LookupButtons.It's a textarea object where you click a control to see a list of valid values. Using WPF Inspector, I can see all the values in an "ObservableCollection`1" object under the property CollnLookupDetails, but cannot figure out how to retrieve the ObservableCollection`1 object using Testing Framework. Is it possible to retrieve an ObservableCollection from a property?

In the attached screenshot, the application under test is on the left, with a LookupButton textarea. On the left is WPF Inspector, showing the LookupButton and its CollnLookupDetails property. There are many "LookUpDetails" objects in the collection. Those are the objects I want to get.

I may be attempting to do the wrong thing. Maybe there is a different way to get all the valid values in a WPF object collection? Any suggestions or pointers would be very much appreciated. Thank-you!

Plamen Mitrev
Telerik team
 answered on 18 Oct 2019
12 answers
258 views

Hello,

 

I am getting 'Storage Service unreachable popup error message when I tried to save a test. Test saves after clicking on Ok but I am wondering why this popup message.

Screenshot attached

Thanks,

-

Padmashree

 

 

 

 

 

Elena
Telerik team
 answered on 30 Sep 2019
0 answers
116 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
184 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
3.6K+ 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
194 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
485 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
178 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
107 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
286 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?