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

3 posts, 0 answers
  1. HoangPham
    HoangPham avatar
    6 posts
    Member since:
    Oct 2013

    Posted 04 Nov 2013 Link to this post

    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. Mario
    Admin
    Mario avatar
    8 posts

    Posted 07 Nov 2013 Link to this post

    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
  3. HoangPham
    HoangPham avatar
    6 posts
    Member since:
    Oct 2013

    Posted 08 Nov 2013 Link to this post

    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.
Back to Top