Telerik Forums
Testing Framework Forum
3 answers
98 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
112 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
150 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
126 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
134 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
118 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
284 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
196 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
2 answers
148 views

i want to find an element based on its hierarchy. so i am using the AddHierarchyConstraint method of HtmlFindExpression as follows:

 

HtmlFindExpression oldExpr = new HtmlFindExpression("TagName=table" class ="xmlMenuCellSpacing");

HtmlFindExpression expr = new HtmlFindExpression("TagName=td");
expr.AddHierarchyConstraint(new HierarchyConstraint(new HtmlFindExpression("TagName=a", "TextContent="+item.ToClauseString()), 1));

oldExpr .AppendChain(expr);

 

But when i am appending the hierarchy constraints exprression to some old expression chain. The new expression lost the hierarchy constraint after AppendChain() call. I need a long chain of expression with hierarchy constraints .

Should it be a bug or you only allow hierarchy constraints in a single expression not in a chained expression.  

I have attached the scenario i am working on . There i need to find a cell(td) which have <a> anchor tag with text content as "Layout" whose parent(grandparent or so on..) is a cell (td) which have <a> anchor tag with text content as "Window" which have a parent (grant parent or so on..) is a table (table) with class =xmlMenuCellSpacing.

Please let me know what are the possible way of achieving the above said scenario.

Ivaylo
Telerik team
 answered on 05 Jun 2015
1 answer
113 views

I'm writing custom classes to handle common test steps and was wondering how to utilize the ArtOfTest logging so that when a code step calls one of the classes, the class can log messages to the test log so that all the log information is available.

 

I've tried adding Manager and setting the createlog to true - but I'm not seeing log output to the test log.

 

 

 

Ivaylo
Telerik team
 answered on 03 Jun 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?