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

Unable to click the check boxes in 'filter-treeview-in-dialog' component using Test Studio.

7 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Radhika
Top achievements
Rank 1
Radhika asked on 05 Feb 2018, 11:50 AM

Hi,

In our application we have 'filter-treeview-in-dialog' kendo component, in which we have to select the check boxes. But I am unable to select any of the check boxes using Test Studio.

Please see the link below:

https://demos.telerik.com/kendo-ui/treeview/filter-treeview-in-dialog

See the attached snap for the same.

 

7 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 08 Feb 2018, 09:33 AM
Hello Radhika,

Thank you for providing a sample to test the misbehavior you have faced. 

I reviewed the sample page and here are some notes on its specifics. If you dig into the DOM tree to examine the structure of the tree list view in question you will notice that each checkbox and label next to it are sibling elements under a div element. To handle that case you would need to manually modify the element's find expression to use the correct element using the 'aria-label' attribute which is the label text content. 

You could also navigate through the DOM explorer in the recording toolbar during recording and highlight elements and use the Elemente menu to easily navigate and explore the structure of the application. 

I also noticed that IE and FF render the application in a slightly different way and if you plan to use IE I would recommend you use the custom click on a specific location to adjust it to click in the checkbox. 

I hope these will be helpful to you. Please let me know if you would need any further assistance. 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Radhika
Top achievements
Rank 1
answered on 15 Feb 2018, 06:06 AM

Thanks Elena, now I am able to click those check boxes. I am also facing issue with 'Query Builder' I am unable to do any operations on this component. "http://querybuilder.js.org/". See the snapshot for the same.

I had checked with the solution provided for my earlier query, but no luck.If possible could you please provide me the optimal solution for this 'Query Builder'.

Regards,

Radhika.

0
Elena
Telerik team
answered on 15 Feb 2018, 04:26 PM
Hi Radhika,

I tested the provided sample page and it worked fine for recording against Firefox without further adjustments. The execution worked find for the rest of the browsers. Could you please prepare a sample test which you have difficulties with? 

Thanks in advance! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Radhika
Top achievements
Rank 1
answered on 22 Feb 2018, 08:38 AM

Hi Elena,

I have a Test Script with 20 steps while I am executing many times all the steps are showing pass but in the application when I observed it just log into the application no action was performed (means it is showing status as 'pass' for some failed actions also). This is the not the expected behavior, suppose if I had 100+ Test Scripts running in a batch mode how can I rely on 'Pass' vs 'Fail' Test Scripts.

Regards,

Radhika.

0
Elena
Telerik team
answered on 26 Feb 2018, 01:59 PM
Hello Radhika,

Thanks for reaching me out. 

What I suspect based on the shared observations is that the elements' find expressions are not built to point to a single element on page and thus these are found on page despite the fact the execution is not as you expect it. 

I will recommend you double check the find expressions and adjust these if necessary. A very useful feature for debugging such issues is to turn on the annotations (please see point 5. in this article) and observe the execution until you find out which is the first element causing troubles and start with its modification. The annotations will highlight the target element for each step which will allow you better understand what might be going wrong. 

Please let me know if you will need further assistance on that topic. If so please let me know if you could send me a sample test against a public accessible page. 

Thanks! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Radhika
Top achievements
Rank 1
answered on 09 Mar 2018, 12:19 PM

Hi Elena,

I have done all the things mentioned but I still getting the same issue. Here I observed that behavior in my application, I didn't have anything to show case you on any public accessible page.

Could you please run multiple times for the script generated for https://demos.telerik.com/kendo-ui/treeview/filter-treeview-in-dialog page earlier.

Regards,

Rajesh . K.

 

0
Elena
Telerik team
answered on 13 Mar 2018, 01:12 PM
Hello Radhika,

Thank you for getting back to me. 

Please note that it will be quite more beneficial if you provide me a sample test scenario (even against the demo page you referred to) which you experience troubles with. That way I could test the exact scenario and provide further advice. 

Another possible approach could be to record a short video of the faulty execution against the actual application under test with turned on annotations and send it along with the execution log and test file. You could include the files in a zip archive and attach these to the current thread. 

The important note is that since the issue is intermittent it is probably related to the elements on page and especially their find logic. Probably it could be required to enable 'SimulateRealClick' property for the Click steps or 'SimulateRealType' property for the Type text steps. Possibly few wait steps or execution delay steps could also improve the consistency of execution. How to modify the find logic and execute the test with turned on annotations was listed in my previous reply. 

Please let me know if you have any concerns in regards the above notes and whether it will be possible to provide the requested additional details. Thanks once again for your time! 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Radhika
Top achievements
Rank 1
Answers by
Elena
Telerik team
Radhika
Top achievements
Rank 1
Share this question
or