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

How to run a test step with application has already been openned ?

2 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
HoangPham
Top achievements
Rank 1
HoangPham asked on 04 Nov 2013, 03:00 PM
Hi all,

This is the first time i try to write some scripts for testing on WPF objects and using Telerik.

I tried to use Telerik as a VS2012 Ultimate plug-in to record GUI objects on our WPF application. Next, I tried to create some functions to perform some actions on these objects. Then, I created a new Coded UI class, declare Telerik class object above to invoke its functions for testing.
Finally, i start our WPF application and let script run. And i get an error in the code below:

public Applications Applications
{
    get
    {
        if (_applications == null)
        {
            _applications = new Applications(Manager.Current);
        }
        return _applications;
    }
}
  As I debug:   Manager  is null.

Could you please give any advice ?
What should i do to fix ?


Thanks & Regards,

2 Answers, 1 is accepted

Sort by
0
Mario
Telerik team
answered on 07 Nov 2013, 06:08 PM
Hi Pham,

How have you launched the application? It may help to take a look at our documentation on WPF UI Automation, as well as a code sample for connecting to a running WPF application.

Regards,
Mario
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
HoangPham
Top achievements
Rank 1
answered on 08 Nov 2013, 07:20 PM
Thanks Mario,

Because this is the first time i tried to use it, and i did not do convert all step to code, so i did not see Manager.Launch..... :(


Thanks again.
Tags
General Discussions
Asked by
HoangPham
Top achievements
Rank 1
Answers by
Mario
Telerik team
HoangPham
Top achievements
Rank 1
Share this question
or