This is a migrated thread and some comments may be shown as answers.

ContentWindow and PreMouseClick

5 Answers 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stanislav
Top achievements
Rank 1
Stanislav asked on 22 Nov 2012, 01:19 AM
Hello Telerik,

Is there any possibility in Telerik Testing Framework to determine where the user clicks in the application? I found very interesting even - .PreMouseClick. And I am curious about is it possible to use for my need?

What I have done:
1. Execute the .AttachWrappedWindow() method from the .ContentWindow property;
2. Add event to the .PreMouseClick.

Unfortunately, when I click in the application under test somewhere, this event is not fired. What I am doing wrong?

I look forward to hearing from you.

Kind Regards,
Stanislav Hordiyenko

5 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 22 Nov 2012, 04:29 PM
Hello Stanislav,
it would seem that you're trying to use our Framework in a way that is not intended. The Framework will allow you to automate an application. In other words there's no reason for you to use the PreMouseClick() event. 

You don't need to detect when/where a mouse click occurs. When you automate an application - you determine when and where the click will occur.

Would you please give me some additional information on the automation challenge you're trying to solve.
What do you need to accomplish? Let me know and I will assist to the best of my abilities.

Regards,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Stanislav
Top achievements
Rank 1
answered on 26 Nov 2012, 06:35 AM
Hello Stoich,

I noticed that the framework provide such functionality and decided why not.

What I am aiming to achieve? I was asked by my management to simplify the process of test scripts creation using my developed API. I decided to create a tool which will attach to existing application, initialize PreMouseClick event and wait. As soon as the user clicks on the element in the application, the event fires, and I can get the framework element, analyze it and determine which exactly API function from my assembly I should use.

When I read the source of ContentWindow, I noticed that it is related to Win32. Is it possible somehow to use it for WPF application?

So, the question is still relevant for me. Is it possible somehow using your framework to implement this?

Kind Regards,
Stanislav Hordiyenko
0
Cody
Telerik team
answered on 26 Nov 2012, 08:31 PM
Hello Stanislav,

We offer our own record & playback tool for test script creation. You may already be familiar with it: Test Studio. We believe you will see significant gains in productivity using not only the recorder function it comes with, but also the performance testing, load testing, test scheduling features and test failure resolution features that come with the tool. If your goal is to simplify the creation of (and maintenance of) test scripts for testing web applications or Silverlight applications or WPF applications I encourage you to check it out and give it serious consideration.

I am sorry but we do not support hooking into the PreMouseClick event using the Telerik Testing Framework.

All the best,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Stanislav
Top achievements
Rank 1
answered on 27 Nov 2012, 12:38 PM
Hello Cody,

Thank you for your response. I and my team tried trial version of Telerik Test Studio last week. The tool coped with recording successfully, but recorded test couldn't playback successfully as it was expected. The test was the simplest one. I hardly can imagine how this tool can be used in more complex cases. Therefore we don't want to use Test Studio in our project. In my opinion, Telerik testing framework provides much more rich functionality than Test Studio. Test script maintenance in Test Studio is overwhelming and it produces to much useless code.

I will try to find another approach for test scripts creation using my developed API.

Thank you.

Kind Regards,
Stanislav Hordiyenko
0
Cody
Telerik team
answered on 27 Nov 2012, 06:18 PM
Hello Stanislav,

I am sorry your experience thus far with Test Studio has been less than stellar. I took a look at the support tickets you filed during your evaluation. The first thing I discovered right away is that the bug that was filed about the RadColorPicker has been fixed (took us exactly 5 days from the date the bug was filed to fix it in our source code). It appears the fix for this was included in our 2012 R2 release, build 2012.2.920. Unless i'm missing something I don't see anything else that specifically relates to problems creating and running tests in Test Studio.

I am confident that I can assist you overcoming any problems creating and running tests using Test Studio. I have been successful assisting many of our customers automate complex applications. If you're open to the idea we'll extend your trial (I see you did try Test Studio once already in July) and I'll work directly with you demonstrating how Test Studio can be effective and efficient for your test automation along with overcoming any problems you do run into as part of any proof of concept you want to come up with, even using own companies application(s). We often use screen sharing via GoToMeeting to be the most effective. Using this online meeting software we can view and solve automation challenges directly on your machine.

I will standby while you consider this invitation to evaluate Test Studio a second time but this time with more direct technical support interaction.

Greetings,
Cody
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Stanislav
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Stanislav
Top achievements
Rank 1
Cody
Telerik team
Share this question
or