Telerik Forums
Testing Framework Forum
4 answers
174 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
142 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
100 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
131 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
5 answers
168 views
I am using Silverlight automtation testing using WebAII

In my applet there is FrameworkElement Border with Tag as "news"

How can I find this element ?

I tried following but does not work. Any idea ?

            manager.ActiveBrowser.NavigateTo("https://myserver.com");
            SilverlightApp app = manager.ActiveBrowser.SilverlightApps()[0];
            FrameworkElement my  = app.Find.ByExpression(new XamlFindExpression("Tag=news"));
Boyan Boev
Telerik team
 answered on 12 Feb 2014
7 answers
103 views
Does this framework [Version 2011.1 609] support Silverlight application in FireFox and Safari in HTTPS mode ?
Velin Koychev
Telerik team
 answered on 12 Feb 2014
1 answer
85 views
Hi,

We have developed a tool agnostic framework. In our framework we have developed the wrapper classes that converts all the other controls like htmlInputControl, HtmlOption, HtmlDiv  etc.. to HtmlControls  and then using the methods which are provided by HtmlControls to perform the relevant actions.

Is it a good practice to do  it .
Velin Koychev
Telerik team
 answered on 06 Feb 2014
1 answer
109 views
Hi,
Functional testing of a silver light application is bread and butter stuff for the Telerik automation tools. 
However, if we assume that what goes on inside the plugin is working, i.e. we consider our plugin to be a black box, what would be considered to be important connections between the plugin to the browser (my first thoughts would be network and printing connectivity), and how would one go about testing them?

Cheers
Dave  
Cody
Telerik team
 answered on 05 Feb 2014
6 answers
166 views
Hello.

We've recently started using Test Studio Ultimate, and so far the automatic testing seems fairly straight forward. We now want to create some automatic/hybrid tests that our manual testers can use while still "skipping the boring part" (logging etc).

Creating such a test is pretty simple: New manual test -> manual test steps -> select fast forward feature -> record the part you want the testers to be able to skip. Fair enough. However, there are a few issues we're having trouble with:

- When creating a manual test, you can add notes, screenshots and so on. This is a feature we like. Sadly, clicking the fast forward feature takes us to the interface for automatic tests, and there doesn't seem to be a way to return to the interface for manual tests. Is there a way to do that? Ideally, we'd prefer a situation where our developers can create the tests, but the testers still use primarily the manual test interface, as they're not going to use the recording feature.

- Statistics, results and reports seem to be exclusively based on test lists. For example, no reports ever appear in the "Report" section of Test Studio when manual tests are run. How can these features be configured for manual tests? We'd like keep historic data and full test reports for both manual and automatic tests. The closest we've got so far is the "save and exit" feature in the manual test, which allows a file to be created and then loaded into Test Studio. I suspect this could get quite messy in time with thousands of test files lying around.

Have a nice weekend.

Regards,
Svenn 
Velin Koychev
Telerik team
 answered on 05 Feb 2014
9 answers
100 views
Hi

Browser.ContentRectangle returns null with Chrome v32.
Browser.ResizeContent()  fails.

I tried with framework version 2013.2.1210 and 2013.2.1219

Thanks
Konstantin Petkov
Telerik team
 answered on 02 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?