Forum Discussion

ridvan_filiz's avatar
ridvan_filiz
Occasional Contributor
12 years ago

TestComplete9 and Citrix environments

Are there any possibilities to operate with TestComplete9 over terminal services environments (Citrix). For instance with captured pictures in stores/regions etc.?

1 Reply

  • ridvan_filiz's avatar
    ridvan_filiz
    Occasional Contributor
    Yes, Now I know how to do this



    1. Make a bmp objekt with "capture Screen" and save in Stores / Regions.

    2. define a windows variable ( var Applicationwindow;)

    3. Find out the windows name with "Display Object Spy"

    4. Applicationwindow = windows name which you found out with  "Display Object Spy"


    Result = Regions.FindRegion("bmp objekt from point 1", Applicationwindow);



    5. Calculate x and y value



    var halfx = Result ["Width"]/2;



    halfx = Math["round"](halfx);



    var X = Result ["Left"]+ halfx;



     



    var halfy = Result ["Height"]/2;



    halfy = Math["round"](halfy);



    var Y = Result ["Bottom"]- halfy;





    ApplicationWindow ["DblClick"](X,Y);