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

User.Click hangs application

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ayush
Top achievements
Rank 1
ayush asked on 13 Apr 2018, 07:46 AM

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);
            manager.Start();
            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;
                Application.wpfApplication.MainWindow.PopulateVisualTree();
                // 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
        {
            get
            {
                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>();

                ffff.User.Click();

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

 

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 18 Apr 2018, 07:43 AM
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! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
ayush
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or