Telerik Forums
Testing Framework Forum
1 answer
86 views

Hi,

My company wants to use Telerik Testing Framework with no support. Is it possible and free? If yes, what should I download to get Telerik Testing Framework libraries?

Elena
Telerik team
 answered on 17 Jul 2018
21 answers
1.1K+ views

Hi.

How can i send keys in element?

for example: i need to press 'Enter' key in text field.

ActiveBrowser.Desktop...SendString type text in address bar of IE.

Elena
Telerik team
 answered on 17 Jul 2018
1 answer
80 views

I have a coded step that uses the LaunchNewBrowser(BrowserType.Firefox , true) and it works fine as a standalone but as soon as it gets placed in a nested test with data driven elements it stops working. When it runs the browser says "Extension loaded" and the Test runner remains stuck in this step. I have read a few similar posts and tried things like installing Visual Studio but nothing seems to work. This is a remote machine so I'm not sure if that has something to do with it.

Do you have any idea of what the problem could be?

 

Thanks

Vera
Telerik team
 answered on 13 Jul 2018
4 answers
290 views
We are in the initial stages of testing Telerik controls using UFT/QTP. We used Telerik UI for WPF Sample Application (ScreenShot attached)
Using the sample application, we tried identifying certain controls. But we found that some of the properties that we used to identify VB 6.0 controls are not working properly when it comes to the identification of WPF controls. Following are some examples to explain the situation better (We used both UFT 12.0 and 11.53 ) 

1. Treeview control
    We use 'Select' method followed by the item to be selected from the treeview to select an item in a VB 6.0 control.
    But for WPF control, we need to pass the node number instead of the item name that has to be selected.
     WpfWindow("WPF Controls Examples").WpfTreeView("explorerTree").Select 0   'To select the first item in the treeview
     On passing the item name, UFT is throwing error. 

2. ListView control 
     Several of the properties that we use to manipulate a List box VB 6.0 control are not working with WPF controls.
     For example, properties lke GetItem, GetSelection, Select, SelectRange etc are throwing an error from UFT/QTP 
     Since 'Select' doesn't select the item in the list box, we need to go with a crude way to do the job. 
     WpfWindow("WPF Controls Examples").WpfList("WpfList").Object.SelectedIndex = 1





















Stefan
Telerik team
 answered on 03 Jul 2018
1 answer
122 views

Hi,
I am using Telerik's latest version  (Testing_Framework_2018_1_0418_2_Free) and extension (Progress® Test Studio® Chrome Execution) version  (2017.2.823.0). When running the test using the chrome browser , it is saying - 'trying to connect' and after some time i am getting wait time out exception.

Please see the attached screenshots.

Is it possible to use the old telerik extension for chrome with lates telerik framework?


Elena
Telerik team
 answered on 14 Jun 2018
2 answers
129 views

Hi Team,

I am automating the wpf application and trying to connect the already launched application using Manager class, which is working fine in Windows 7,but the same code is throwing null exception for Manager class in Windows 10 64 but machine, let me know what I am missing. 

Regards,

Imran

Elena
Telerik team
 answered on 13 Jun 2018
7 answers
204 views

I'm running unit tests in VS 2015. 

The testing framework version is 2018.1.418.0

The Chrome extension is : Version 2018.1.54.1

When I begin a test the browser shows this URL and "Extension Loaded" in the window:

http://localhost:55222/WebUI/teststudio_start_page.html?port=55221&mode=0&loadingtimeout=50000

However, it just hangs there forever. If I disable the Chrome extension and then re-enable it I can successfully run one test but it will fail if I run it again.

I don't see anything in the browser console nor does the framework write to the log.

The code is pretty straightforward:

 

            Settings settings = new Settings();
            settings.LogAnnotations = true;
            settings.QueryEventLogErrorsOnExit = false;
            settings.LogLocation = "c:\\deleteme\\uiautomation";
            settings.ClientReadyTimeout = 50000;
            settings.CreateLogFile = true;
            settings.AnnotateExecution = true;
            settings.AnnotationMode = AnnotationMode.All;
            settings.DisableDialogMonitoring = false;

            try
            {
                using (Manager mngr = new Manager(settings))
                {
                    mngr.Start();
                    mngr.LaunchNewBrowser(BrowserType.Chrome, true);

                    mngr.ActiveBrowser.NavigateTo("http://the site......");
                    mngr.ActiveBrowser.WaitUntilReady();

                    mngr.ActiveBrowser.WaitForAjax(5000);
                    mngr.ActiveBrowser.RefreshDomTree();

                    Element element = mngr.ActiveBrowser.Find.ById("some id");
                    mngr.ActiveBrowser.Actions.Click(element);
                    mngr.ActiveBrowser.Actions.SelectDropDown(element, "some id");
                    mngr.ActiveBrowser.Actions.InvokeEvent(element, ScriptEventType.OnChange);

                    ......

                    ......

            }

Elena
Telerik team
 answered on 13 Jun 2018
1 answer
88 views

Hi Team,

Do we need to install Telerik Testing Framework on a client machine? Or registering the required Telerik DLL's in GAC is sufficient to run the tests on a client machine?

Vera
Telerik team
 answered on 12 Jun 2018
2 answers
106 views

I have noticed a problem with the testing framework in all versions, including the latest release (2018 R2), when attempting to locate Frames in Chrome ver

H

<iframe src="https://qaapp02.xisecurenet.com/DIeComm/View/IFrame/db672f06-4c09-44f5-aa61-8db2c8755161/bd385978-d72b-4cda-8664-eb5caee1c7bd/true" id="ctl00_cphMain_PaymentSelectionControl_PaymentEntryControl_ucCreditCard_iPaymetrics" name="pmIf" style="width: 400px; height: 371px; overflow: hidden; min-width: 400px !important;" frameborder="0" onload="paymetrics.initializeXIFrame('ctl00_cphMain_PaymentSelectionControl_PaymentEntryControl_ucCreditCard_iPaymetrics','https://qaapp02.xisecurenet.com/DIeComm/View/IFrame/db672f06-4c09-44f5-aa61-8db2c8755161/bd385978-d72b-4cda-8664-eb5caee1c7bd/true','<?xml version="1.0" encoding="utf-8" standalone="yes"?><merchantHtmlPacketModel xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="Paymetric:XiIntercept:MerchantHtmlPacketModel"><localization><merchantLocalization><cultureName>en-US</cultureName></merchantLocalization></localization><iFramePacket><hostUri>https://backoffice.qa4.com<;/hostUri><cssUri>https://backoffice.qa4.com/content/dist/isagenix.pay.paymetric.min.css<;/cssUri></iFramePacket><templateHtml name="CreditCard"><paymentTypes><paymentType type="mastercard" /><paymentType type="visa" /><paymentType type="discover" /><paymentType type="american express" /><paymentType type="jcb" /></paymentTypes></templateHtml></merchantHtmlPacketModel>');"></iframe>

 

 

I have tried all of the following methods to get anything back from the Frames options afforded by the framework (documentation here):

ActiveBrowser.Frames.WaitAllUntilReady();
ActiveBrowser.Frames.RefreshAllDomTrees();
ActiveBrowser.Frames[0];
ActiveBrowser.Frames["pmIf"];
ActiveBrowser.Frames.ById("ctl00_cphMain_PaymentSelectionControl_PaymentEntryControl_ucCreditCard_iPaymetrics");
ActiveBrowser.Frames.Count;

Frames.Count; always returns 0.

Each of these items works when running the same test under IE11 without issue and was working a few days ago under Chrome 66.

I have also attempted the suggestions from this support post; https://www.telerik.com/forums/issue-finding-iframe-and-its-children, with no success.

Elena
Telerik team
 answered on 12 Jun 2018
5 answers
125 views
Hi Telerik,
We want to upgrade our solutions to latest telerik framework i.e Testing_Framework_2018_1_0418_2_Free. But while launching a browser for any test using any of the browser using RunTest option from visual studio, we are getting following below exception. When I am using Debug Test option from VS 2015, the same test is working for me on IE,chrome and firefox browser. I am only seeing the below issue when i use "Run Test" option.
[TestMethod, Description("This is test.")]
        public void CbRegression_SmartTag_LoginTest()
        {
            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
            ActiveBrowser.NavigateTo("http://news.google.com/");
        }


"ArtOfTest.WebAii.Messaging.Process.ExecutionMediator" threw an exception. System.Reflection.ReflectionTypeLoadException- unable to load types.
Please note that i am using BaseTest class to intialize the test and my targetted framework is 4.5 and VS2015.
Please see the attached error screenshot on test intialization.

Thanks & Regards,
Elena
Telerik team
 answered on 12 Jun 2018
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?