Telerik Forums
Testing Framework Forum
1 answer
81 views

Hi,

I was wondering if it was possible to test the column headers in an excel sheet  or PDF as part of the "Handle 'Download' dialog" command?

A large part of our product is report based, so it would be invaluable for us to be able to use test studio to verify field headers.

Regards

Tom

Boyan Boev
Telerik team
 answered on 13 Jul 2015
12 answers
248 views

Hello,

 I am working on a project totally focused on managing cookies (getting and setting cookies from browsers). I am using the latest version of test framework "Telerik test studio automation 2013.2.1519.1" under firefox. All setups are OK.

So the problem consists in the domain of a cookie: I can't add a cookie with a domain ".example.com"  in the browser, thus all dervied urls (example.com, art.example.com,www.example.com, any.other.example.com) will read that cookie. 

The cookie domain cases that succeded are : "www.example.com", "example.com", "http://www.example.com"

But, whenever I add a cookie with "www.example.com", in the browser the cookie will be added "www.example.com" not ".example.com".

My main goal is to have all cookies loaded in the browser with ".example.com".

 

Thank you.

Ivaylo
Telerik team
 answered on 06 Jul 2015
3 answers
112 views

Hello,

 

I would like to install the Telerik Testing Framework on a PC without internet connection,

but I cannot find an offline installer.

 

Can anyone help me please?

 

Greets

Andreas

Ivaylo
Telerik team
 answered on 02 Jul 2015
5 answers
139 views

Using Telerik Test Framework 2015.1.319.0

I have a wpf application to test which opens windows in a list-> detail paradigm.

Each detail window opens a new wpf window which can be wrapped by WpfApplication.WaitForWindow(caption, windowTimeout).

Each window is closed using:

     WpfWindow.Window.DetachWrappedWindow();
         WpfWindow.Window.Close();

Using a 32 bit test application this will open and close about 50 windows before terminating with an out of memory exception.

Using editbin /LARGEADDRESSAWARE $(TargetPath) to increase accessible memory allows about 250 iterations before the exception.

On examination it seems that the telerik test framework is not releasing resources when a WaitforWindow wpfWindow is  closed.

If the (detail) wpfwindow does not do any RefreshVisualTrees() or any .Find() operations then the resources do not run out.

The more complex the detail window, the more resources are lost.

I have attached a sample application which uses a similar model - showing the resources not being released. If you run the application (without debugger!) and simultaneously run perfmon looking at working set and working set peek - you can see it inexorably creeping up. With such a small application you wont actually get the out of memory condition. However this is preventing some important test scenarios for my clients.

Please can you advise?

Regards

 

Boyan Boev
Telerik team
 answered on 29 Jun 2015
6 answers
196 views

Hello, I'm struggling with a problem that doesn't make sense to me. 

I'm writing some tests (I'm totally new to the testing framework), the first of which consists on login to the site.

So I'm doing this:

 myManager.ActiveBrowser.NavigateTo(site.LoginURL);

 myManager.ActiveBrowser.WaitUntilReady();

 Thread.Sleep(5000);

 //Find username control
 HtmlInputText usernameControl = myManager.ActiveBrowser.Find.ById<HtmlInputText>("email");
 usernameControl.MouseClick();
 myManager.Desktop.KeyBoard.TypeText(site.DefaultUser.Username);

//Find password control

 HtmlInputPassword passwordControl = myManager.ActiveBrowser.Find.ById<HtmlInputPassword>("password");

 passwordControl.MouseClick();
 myManager.Desktop.KeyBoard.TypeText(site.DefaultUser.Password);

 Element loginBtn = myManager.ActiveBrowser.Find.ById("loginBtn"); 
 myManager.ActiveBrowser.Actions.Click(loginBtn);

 

 I had to use html elements for the imput boxes because the site is made using ember.js and looks like it requires "real typing".

The problem is that if I run this against a local testing site it works perfectly. However if I try to run it against a site (an identical copy) on a remote server, the framework can't find the controls and I get a null reference exception because the object "usernameControl" is null.

I can warranty that the site hosted on the remote server contains those controls, and that's why this doesn't make sense to me. 

Am I missing something? Any help will be appreciated.

Thanks in advance,

 

Gonzalo

Ivaylo
Telerik team
 answered on 18 Jun 2015
2 answers
155 views
please provide some code samples for testing kendoeditor.

1.  set value of kendo editor
2.  click toolbar of editor
Srinivasan
Top achievements
Rank 1
 answered on 16 Jun 2015
3 answers
161 views
After I have tried almost everything I need a help from Telerik to solve or find a valid workaround for the bug in DownloadDialogsHandler.
The application/test is very very basic and simple. I'm using the latest version of Testing Framework, with IE 11 on Windows7. The browser is enabled to download any file w/out restrictions.
Here is the code:


2.string saveLocation = System.IO.Path.Combine("C:\\Users\\Developer\\Downloads", "DownloadedFile_1.zip");
3.DownloadDialogsHandler handler = new DownloadDialogsHandler(myManager.ActiveBrowser, DialogButton.SAVE, saveLocation, myManager.Desktop);
4.Element downloadBtn = myManager.ActiveBrowser.Find.ByExpression(new HtmlFindExpression("type=submit", "value=download","name=m"));
5.myManager.ActiveBrowser.Actions.Click(downloadBtn);
6.handler.WaitUntilHandled();
7.myManager.ActiveBrowser.NavigateTo("https://agenziaentrate.gov.it/CloseSessions");


after a certain amount of time, the following exception is raised on line 6:
Timed out waiting '60000' msec. for any dialog to be handled '1'

If I specify WaitUntilHandled(20000), obviously the exception is raised after 20s: Timed out waiting '20000' msec. for any dialog to be handled '1'
In several post Telerik team says that this line is needed, but it raise always an exception, (but the file is correctly downloaded), and the execution is break.

If I remove it, as it should be from the telerik official documentation, the DownloadDialogHandler is not correctly managed, and it is terminated before having the time to save the file on the local hard disk.

The file I'm trying to download is around 10KB, so we're talking of extra small files...




DownloadDialogsHandler
DownloadDialogsHandler
Ivaylo
Telerik team
 answered on 15 Jun 2015
7 answers
174 views
I'm getting a System.NullReferenceException on the following: 

HtmlSpan policySpan = kendoIE.ActiveBrowser.Find.ByContent<HtmlSpan>("p:foo"); 

And I know the span is there, 

I've tried xpath, which is this : //html/body/div[2]/div/div/div[1]/div/ul/li[3]/ul/li[1]/span

and I still get the same exception. 

Thanks, 

Adam. 
Boyan Boev
Telerik team
 answered on 12 Jun 2015
5 answers
355 views
Hello Telerik,

I would like to inform you about the following issue that was found during my work with Free Testing Framework.

There is no possibility to select any value from the ComboBox until clicks on it firstly.

public static void SelectItemByText(this ComboBox comboBox, string itemValue)
{
    comboBox.User.Click();
    comboBox.SelectItemByText(true, itemValue);
}

Kind Regards,
Stanislav Hordiyenko
Boyan Boev
Telerik team
 answered on 12 Jun 2015
1 answer
223 views

I have a framework used across multiple teams in my project. We reference the same Test Studio/ TelerikFramework version (2015.1.319.0).

We have a new  machine to setup, and it needs to reflect the same version.

Since Test Framework has upgraded, we are unable to use the older version.

Upgrading would mean changes made across all the teams and build agents.

So could you direct me on how I could install version 2015.1.319.0 specifically?

Ivaylo
Telerik team
 answered on 08 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?