User.Click hangs application

2 posts, 0 answers
  1. ayush
    ayush avatar
    3 posts
    Member since:
    Apr 2018

    Posted 13 Apr 2018 Link to this post

    User.Click hangs application


    hi ,


    i have text block control in a ListViewItem which i am fetching using code below after attaching to an already running application


     Manager manager = new Manager(settings);
                Process[] s = Process.GetProcesses();
                var sss = s.Where(x => x.MainWindowTitle.Contains("Winshuttle Studio")).FirstOrDefault();
               var apdp =  manager.ConnectToApplication(sss);
                var app = manager.ActiveApplication;
                wpfApplication = app;



     POM1 pOM1 = new POM1(wpfApplication.MainWindow.Find);
                  //  var aa = pOM1.FileNameTextBlockTextblock.Text;
                    // var asss = pOM1.DescrTextblock0;
                    var hh = pOM1.ListViewRow;


     /// Find logic /Property of row item in POM1
            /// (Wpf): [name 'Exact' rrvRibbon] AND [XamlTag 'Exact' radribbonview][XamlPath 'Exact' /grid[name=RootPanel]/rectangle[0]]
            /// </summary>
            public ArtOfTest.WebAii.Controls.Xaml.Wpf.ListViewItem ListViewRow
                    return Get<ArtOfTest.WebAii.Controls.Xaml.Wpf.ListViewItem>("XamlTag=listviewitem", "automationid=SapField~BDC_CURSOR##8");



                    ArtOfTest.WebAii.Controls.Xaml.Wpf.Grid descriptionBlock = hh.Find.ByName< ArtOfTest.WebAii.Controls.Xaml.Wpf.Grid>("descriptionGrid");
                    var ffff = descriptionBlock.Find.ByType<ArtOfTest.WebAii.Controls.Xaml.Wpf.TextBlock>();


    the issue is after this or any other call like settext to any element , the click operation is performed the execution goes to next step , but the application freezes and stop responding , after i halt the exe/execution application comes to normal state

    setting used: 


    var settings = new Settings();
                    settings.Wpf = new ArtOfTest.WebAii.Core.Settings.WpfSettings(@"C:\Program Files (x86)\Winshuttle\Studio\Winshuttle Studio.exe");
                    settings.ClientReadyTimeout = 60000;
                    settings.ElementWaitTimeout = 60000;
                    settings.ExecuteCommandTimeout = 60000;
                    settings.ExecutionDelay = 60000;
                    settings.WaitCheckInterval = 9000;
                    settings.RunnerResponseTimeout = 9000;
                    settings.SimulatedMouseMoveSpeed = 0.5f;
                    settings.AnnotateExecution = true;
                    settings.AnnotationMode = AnnotationMode.All;
    environment : win10 , wpf application


  2. Elena
    Elena avatar
    1239 posts

    Posted 18 Apr 2018 Link to this post

    Hi Ayush,

    Thank you for the details shared. 

    As of the description of the issue it seems to be related to the application under test and how Test Studio interacts with it. Will it be possible to provide us a sample application we could debug on our end? 

    I am looking forward to hearing back from you! 

    Elena Tsvetkova
    Progress Telerik
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top