Need More Info
Last Updated: 25 Mar 2022 11:22 by ADMIN
DJ
Created on: 14 Mar 2022 17:11
Type: Bug Report
1
No Chrome Extension doesn't open file upload dialog window

Using the No Chrome Extension, the dialog window to upload a file doesn't open when running the test.   I’m unable to give you access to my testing site, however, I used https://ps.uci.edu/~franklin/doc/file_upload.html to replicate the issue and supplied the Test studio projects for your review.

 Chrome: Version 99.0.4844.51 (Official Build) (64-bit)

OS: Microsoft Windows 10 Enterprise

Version: 10.0.19044 Build 19044

Attached Files:
5 comments
ADMIN
Elena
Posted on: 25 Mar 2022 11:22

Hi David,

I will appreciate if you submit a private thread in which we can explore the execution of the specific tests against the actual application. Probably there is some sort of adjustment required and we will be able to sort this out. 

As to the dialogs in the different browser versions - this is always an issue from our perspective too. Very often the dialogs in the latest browsers have different structure from before and the built-in dialog handlers stop working as expected and we need to fix them. For this we have implemented the option to push instant updates through the browser support update

At the time when we started our conversation there was such an update available, so you can check if you have installed it. 

The dialog handlers in code are using these same definitions to handle the dialog in test execution. So, there is no significant difference if you are using the coded approach or the built-in handlers to address the dialogs in the tested application. 

On the other hand, my suggestion to use the annotations is only meant for troubleshooting until the cause of the misbehavior is identified. It is not a solution to slow down the overall test execution.

Having all these notes in mind and the fact that the sample project works fine on my end for both extension-less Chrome run or execution with the extension, my advice is to focus on the specific tests and application. To avoid sharing any sensitive information in this public thread, you can contact us in a private support thread. 

Thank you for your cooperation once again.

Regards,
Elena
Progress Telerik

Does UI testing really fit into CI/CD?

If you want to find out how to take advantage of continuous delivery pipelines, join our Test Studio webinar on Wednesday, April 6 at 11 am EST | 5 pm CET.

DJ
Posted on: 22 Mar 2022 11:39

The standard execution delay for our scripts both locally and on the server is 200ms.  Our scripts are very complex and slowing them down more than 200ms has a sufficient impact on runtime. With that said, I did a test at 400ms and the error still occurred. 

After extensive troubleshooting, I used the FileUpload Dialog coded step from your tech note and appears to resolve the issue. https://docs.telerik.com/teststudio/testing-framework/write-tests-in-code/advanced-topics-wtc/html-popups-and-dialogs-wtc/file-upload-dialog

While this did fix the issue, we have used this coded step in the past and seems brittle.   I would say fileupload is one of our biggest pain points with Test studio and we’re constantly fixing our scripts when browsers do updates. 

ADMIN
Elena
Posted on: 17 Mar 2022 09:46

Hello David,

I checked the execution log and it seems as there was no dialog to be handled. So, I suspect that there could be something wrong with the click step, which needs to trigger the upload dialog. To verify if that step could be causing any troubles, please, execute the test locally with enabled annotations - these will slow the down the execution slightly so, it will be a good cross check to understand what is going on during the run. 

Please, let me know if there is any difference. 

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
DJ
Posted on: 15 Mar 2022 18:37

Thank you for the feedback.  Unfortunately, the issue I’m seeing is our scripts are failing as the file isn’t being uploaded when using the no chrome extension. It appears to be failing when we execute the script locally, however, if I run that same script on the execution server it passes.   I’ll file a support ticket so we can further investigate this issue as many of scripts test file upload. I’ve attached a log file so you can see the failure that I’m referring too.  

Attached Files:
ADMIN
Elena
Posted on: 15 Mar 2022 14:21

Hello David,

Thank you for the thorough description of the observed behavior. 

I verified the dialogs with the extension-less mode for Chrome on my end and can confirm that all these are working as expected. The mechanism of test execution for the Chrome without extension is different than the one you are used to with the extension in Chrome. One of the major differences is the dialog handling and to be more precise - the visual representation of handling the dialogs. 

Having that said, I guess that you have observed a run of the test with the extension-less mode and noticed that no dialog appears. If this is the only thing that bothers you (the steps from the test were handled correctly and reported passed, and also you have evidence the file is uploaded), there is no reason to worry - the dialogs in this mode do not appear during the test run. Still, they are handled as expected. 

I also checked the sample projects you prepared and don't see an issue with these. So, please, let me know if the shared information makes sense for you or there is anything else we need to focus on.

Thank you for your understanding in advance.

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.