Telerik Forums
Testing Framework Forum
6 answers
168 views
This is closely related to my previous post http://www.telerik.com/forums/cannot-launchnewbrowser-chrome-as-minimized-window but I decided to post it as a new thread since this is a separate issue and it may help others to search for it easier. I am trying to launch a new chrome window with the waitForBrowserToConnect = false but I am getting the following error:

InvalidOperationException - Sequence contains no elements

Here is some sample code. It should be noted that the following code works perfect without an error if you change the browser from Chrome to Internet Explorer:

Dim oSettings As Settings = New Settings()
 
oSettings.Web.DefaultBrowser = BrowserType.Chrome
 
Dim oManager As Manager = New Manager(oSettings)
 
oManager.Start()
 
Try
    oManager.LaunchNewBrowser(oSettings.Web.DefaultBrowser, False)
Catch ex As Exception
    MsgBox(ex.Message)
End Try

The only reason I am trying to do this is so that I don't have to wait a few seconds for the automation controls to "connect". This way I can use pinvoke to minimize the chrome window quickly so that I only see it for a split second, but I can't because it crashes my app! Please help!
Cody
Telerik team
 answered on 05 Mar 2014
7 answers
104 views
Hi,

I am unable to perform field level validation , since whenever I use SetValue(string property, string input) method, it enters all the values in the input text box. 
For example:

I have a input text box that is restricted to two digit numeric values but when i use the SetValue(string property, string input) method  and pass a 3 digit number, it allows to enter 3 digit number. I cross verified manually, the input text box takes only 2 digit value but through the testing framework it enters 3 digit number.

Please let me know how to fix this?
Boyan Boev
Telerik team
 answered on 04 Mar 2014
1 answer
111 views
Hi,

We are facing issues when we try to run Automation scripts by login into Remote Desktop with different user credentials.
1. All scripts are running fine when I logged into Remote Desktop  with one credentials.( i.e. all tests are displayed in Test
Explorer)
2. When tried to open same project by logging into Remote Desktop with different user.( i.e. tests are not displayed in Test Explorer) and “Exception has been thrown by the target of an invocation.” exception is occurring. 

And also I am able to see "Nunit Test Adopter'  installed in visual studio when logged  in with different user.

Please help me on this and also please find attached screen shot.

Environment used:
'Microsoft Visual Studio 2012 Premium
Telerik Testing framework(plug in to vsts)
Nunit 2.5.7
To run test: Nunit Test Adopter


 

·        




     

 

·        


 

 

Thanks & Regards,

Vidya.S.Vernekar


Konstantin Petkov
Telerik team
 answered on 03 Mar 2014
3 answers
68 views
Hello,

I have a DIV element that I want to get the background color of.

The background is not listed in the DIV's styles attribute, but it's instead a part of a CSS class the DIV is using.

<div class="wrapper" style="height: 30px;">
</div>

the wrapper.css is as follows:
.wrapper { background: #f2dcdb; }

I can't seem to find a way to look into the background attribute of the wrapper class. I can't seem to find a way.

Any help would be appreciated.

Thank you
Boyan Boev
Telerik team
 answered on 28 Feb 2014
2 answers
68 views
Is there support to identify HTML5 tags such as  "<section>", <article> ,"<figure>" etc in Telerik Testing Framework ?

If yes which API needs to be used? what is the namespace?

Any sample would be of great help

I looked at below links, but it was of not much help.
http://www.telerik.com/automated-testing-tools/support/documentation/online-api-reference/html/N_ArtOfTest_WebAii_Controls_HtmlControls.htm
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/recording-tests/translators/html5.aspx

Also for Kendo Grid and other kendo ui controls are there any samples? which version of Telerik Testing Framework installer have those API's ?
Currently i have 2013.1.1002.0 version.

Thanks in Advance.

Regards,
Naveen

Konstantin Petkov
Telerik team
 answered on 28 Feb 2014
1 answer
177 views
I'm new to KendoUI and trying to get some suggestion for testing tool to choose.  We are java and APEX(Salesforce) shop and use Eclipse as an IDE.  I've heard about Mocha and Jasmine but looking for a feedback
Konstantin Petkov
Telerik team
 answered on 26 Feb 2014
4 answers
136 views
Hello!

From what I could gather, it is not possible to run multiple versions of the Testing Framework on the same machine.

We have multiple versions of our product in development, each with a matching suite of web tests. We are using a common build agent infrastructure to run our Web Tests. What is the recommended way of setting up the Telerik Testing Framework to not have to upgrade every web test project just because one product version updates the Testing Framework.

In addition, we would like to use the Testing Framework with multiple teams and projects. Here, too, we do not wish to upgrade all projects to always match the latest version of the Testing Framework used within the company.

How can I accomplish these requirements?

Best regards, Michael
Michael
Top achievements
Rank 1
 answered on 21 Feb 2014
1 answer
107 views
Hi, I just started playing with the Telerik Testing Framework and I have been able to do a lot of cool things, but I have also discovered a lot of stumbling blocks along the way. My first problem is that I cannot create a chrome browser window that starts minimized. I can do this with internet explorer just fine, but it seems to be ignored by chrome. Why is that? Here's a quick sample VB code:

Dim oSettings As Settings = New Settings()
  
oSettings.Web.DefaultBrowser = BrowserType.Chrome
  
Dim oManager As Manager = New Manager(oSettings)
  
oManager.Start()
oManager.LaunchNewBrowser(oSettings.Web.DefaultBrowser, True, ProcessWindowStyle.Minimized)

To be honest I would actually prefer the ProcessWindowStyle.Hidden option but I read somewhere that it doesn't work. Is Minimized the same thing? Why are these offered as options if they do not work? I am able to use pinvoke to minimize and hide the window *AFTER* the telerik framework has been enabled for automation, but this takes a few seconds and I would really prefer not to see that screen popup everytime I am running a new test. Is there any way to get this to work with chrome?
Boyan Boev
Telerik team
 answered on 20 Feb 2014
4 answers
58 views
I am doing Silverlight application test automation. All looks fine, but moment I do browser refresh (or if certain button click in app does page refresh) all commands followed by the page refresh ends up in Exception

manager.Start(); // Start the manager
manager.LaunchNewBrowser(); // Launch a new browser instance.
manager.ActiveBrowser.Window.Maximize();
manager.ActiveBrowser.NavigateTo(TestConfigs.BaseUrl);
app = manager.ActiveBrowser.SilverlightApps()[0];
manager.ActiveBrowser.Refresh();
Thread.Sleep(5000);
app.RefreshVisualTrees();    // Here it throws following exception




{"ExecuteCommand failed!\r\nInError set by the client. Client Error:\r\nSystem.NullReferenceException: Object reference not set to an instance of an object.\r\n   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)\r\nBrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{\"Method\":null,\"Property\":null,\"Reference\":null,\"Reference2\":null,\"Type\":12,\"Value\":null}',ClientId:'Client_079a5f6e-e58f-4682-94c6-ac9a1cf9345b',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)\r\n   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)\r\n   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')\r\nInnerException: none.\r\n"}


Any idea whats going wrong here ?

Regards !

Yogesh
Boyan Boev
Telerik team
 answered on 18 Feb 2014
3 answers
78 views
Hi,

I am using WebAii / Telerik Testing Framework with C#.

I've run into an issue with a TextArea tag on my site.

1.<textarea id="msgBody" class="messageBody">TEXT</textarea>

I have issued the following code:

1.public void enterMessageText(string message) {
2.    msgBodyTextArea.Text = message;
3.}

The field updates visually with the new message, let's say "Hello, world!"

1.<textarea id="msgBody" class="messageBody">Hello, world!</textarea>

However, when I go to save the issue, apparently the save feature I have will render the old display "TEXT".

This does not occur when I manually type in the Text Area.

Any help would be appreciated.

Boyan Boev
Telerik team
 answered on 12 Feb 2014
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?