Telerik Forums
Testing Framework Forum
3 answers
97 views
Hi All,

Recently I faced with an issue related to processing frames under Chrome browser.
The root cause of issue is in FrameInfo calculation, which receive next values for building frame rectangle:
"359.4460144042969"
"120.5397720336914"
"807.272705078125"
"594.54541015625"

As result FormatException raised in Convert.ToInt32 method.

I used next configuration:
Chrome:  26.0.1410.64 m
TTF: 2012.2.1527.0
OS: Win 7 x64

Could you confirm this issue and submit the bug ?

Thanks,
Mykola
Cody
Telerik team
 answered on 26 Apr 2013
1 answer
132 views
Hello Telerik,

What is the difference between all these three methods: .Refresh() of FrameworkElement, .RefreshVisualTrees() of WpfWindow and .RefreshRoot() of VisualFind. In which cases should I use every method?

How can I wait in the script till the moment when the tab is opened and I can search for inner element again? Currently, I am experienced with the sync issue. The tab is opened, but the inner tab couldn't be found even though it is displayed. I have to add Thread.Sleep(1000) to wait for the element update to be able to get the inner tab.

Thank you.

Kind Regards,
Stanislav Hordiyenko
Plamen
Telerik team
 answered on 25 Apr 2013
2 answers
65 views
Greetings,

I am facing the same problem as the original poster complains of about here (unable to get the sample tests that involve the Find() method and class attributes to work):
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/problems-running-framework-samples.aspx#2585206

I am reposting my question here since it has been over 48 hrs. that I added a plea for help in that post without any response so am hopeful that I'll get a more prompt response here, via a new post.

I've downloaded the attached ArtOfTest.WebAii.NUnitExtension project mentioned above.  I can't compile it though.  I've added the nunit.core and nunit.core.interfaces references to the project.  Mind you I am using NUnit 2.5.10.11092

I've also modified the method RunTestMethod as mentioned in the post but still I have two errors it seems.

One error (hover over tool tip) is with the override directive of the method saying 'There is no suitable method for override'

The other is at the base.RunTestMethod line saying that I cannot access a private method here.

So I'm at a bit of a loss.  Can you provide some guidance please.


Humberto
Top achievements
Rank 1
 answered on 24 Apr 2013
1 answer
102 views
I have installed Testing Framework 2012.2, and am using Visual Studio 2010 and NUnit 2.62.

I have added an NUnit template to my project as described in the Testing Framework: Getting Started / Using NUnit documentation. When I do a build I get "The type or namespace name 'ArtOfTest' could not be found (are you missing a using directive or an assembly reference?)". I tried removing the reference to ArtOfTest.WebAii and re-adding it to the project but this made no difference.

I want to use the Testing Framework to test a WPF application. Is there any sample code with a simple WPF application and tests available, all of the samples I have been able to find seem to be either for testing web applications or just one or two lines which do not help a new user.

Update. I have identified the problem.

1. The reference to nunit.core had the wrong location, presumably because I am using a later version of NUnit. This is a minor point, and not the real problem.

2. I used VS 2010 to create a C# WPF project. This set the Target Framework to '.NET Framework 4 Clent Profile'. I had to change this to '.NET Framework 4'. This fixed the problem and I have at least got as far as opening the application and verifying that the main window caption is correct.

Plamen
Telerik team
 answered on 24 Apr 2013
5 answers
96 views

Hello.

now i have main class with tests code and another class with elements.

class MainTestPageObjects
    {
        public static readonly HtmlFindExpression FooterLink = new HtmlFindExpression("id=footer", "|", "tagname=a");
}
but in tests i should specify type of element

Assert.AreEqual("http://mysite.com/",
                            Find.ByExpression<HtmlAnchor>(MainTestPageObjects.FooterLink).HRef);

How can i do it without specifying type of elements?

Boyan Boev
Telerik team
 answered on 24 Apr 2013
11 answers
258 views
Hi

I am using Telerik Free testing framework 2012.2 920.

I am unable to connect to modal up in firefox.
I am using the below code snippet. The same line of code works for chrome and safari.

WaitForNewBrowserConnect("/signoff.aspx", true, 5000);


My application scenario

1. Submit the form.
2. Modal popup appears with password field with OK and cancel button.
3. Now I tried using 
WaitForNewBrowserConnect("/signoff.aspx", true, 5000);
 to connect to that modal popup window.

Actual Result
1) When the code in step 3 starts executed, the modal pop is auto closed. I tried inserting sleep time before this line of code, but even while executing sleep time, the modal pop is auto closed.  
2) The problem is 'the modal pop is closed automatically' while trying to connecting to it.

Note:
When I insert VSTS breakpoint on the line of code in step 3 and debugging, I am able to connect to the modal up in firefox.


I have attached the screen shot of the modal popup window and the fiddlercap recorded file. you can find the log for signoff modal pop (signoff.aspx)

Firefox version used :  '8 +'

We are unable to proceed further with your framework. We were using VSTS coded ui test. Since codeduitest is not supporting multi browsers we are switching to your framework, but this issue is stopping us to use it. 

 
Thanks,
Kiran

Boyan Boev
Telerik team
 answered on 23 Apr 2013
1 answer
238 views
Hello Telerik,

Could you provide me with examples how I can use XamlFindExpression to boost elements identification in the window? I have faced with an issue when I want to find a button by its text content: .ByExpression(new XamlFindExpression(new string[2] { "XamlTag=Button", "TextContent=~Save" }));

But this expression returns null.

What is a XamlTagBase and how can I use it?
Can I specify exact tag index of the xaml tag order? How?
How can I use XamlPath? Is there any possibility to specify parent element in the search?

Can you provide me with more examples how I can use it more efficiently. Thank you.

Kind Regards,
Stanislav Hordiyenko
Boyan Boev
Telerik team
 answered on 23 Apr 2013
1 answer
61 views
By default, the test will be run on IE 32bit on WIN7?   But how i can run ie64bit on WIN7?  How should i customize the code?   Thanks!
Boyan Boev
Telerik team
 answered on 23 Apr 2013
1 answer
71 views
Test hanged when runing testing by Test Studio Run time.

After 10 minutes,  no response, no time out. 

Please refer to the snapshot! Thx.
Ivaylo
Telerik team
 answered on 22 Apr 2013
5 answers
126 views
Hello Telerik,

Is there any functionality in Telerik testing framework to work with colour data in WPF application?
I need the following:
1. To be able to get colour information by specifying x and y of mouse coords;
2. Check that the difference between two colours is not more than some value (for example, there is a red color and gray red, and the method returns true or some value).

Thank you.

Kind Regards,
Stanislav Hordiyenko
Velin Koychev
Telerik team
 answered on 18 Apr 2013
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?