Completed

"Verify_File_Download" method doesn't delete the file with "Delete file after check" checkbox is selected

Looks like "Verify_File_Download" method has a few bugs in current version "8.2.2.268". I wonder if someone else experiencing the same issues?

  1. It doesn't delete the file with "Delete file after check" checkbox selected
  2. After Proof tool is executed trying to delete the file, file can't be even deleted manually because it is locked by Java Web Launcher. Error messages states "The action can't be completed because the file is open in Java(TM) Web Launcher". This only option to delete the file is to kill "Client Connection" in Proof tool and then file can be manually deleted.
  3. When "Wildcard" radio button is selected, "Base Directory" field doesn't accept "Inject Template" option. 
  • Steps: 
  • Select "Wildcard" radio button
  • Click in the "Base directory" field
  • Try to inject template
  • Cursor jumps into the "Local path" filed and adds template into the "Local path" field
0
9 comments
Avatar
Jonathan Hotz

Hello Vmelnik,

thanks for your request.

We will provide point 3 in future releases.

 

Unfortunately, we couldn't reproduce points 1 and 2: file is deleted all the time if related checkbox is selected.

Could you please provide additional information?

What browser is used?

What Operating System is used?

Does it not work in local or cloud run (or both)?

Do you use enough WAIT command timeout to allow file download?

If it's possible, could you please provide your VERIFY_DOWNLOAD_COMMAND parameters and execution report?

0
Comment actions Permalink
Avatar
Vitaly Melnik
  • I'm using Chrome Version 75.0.3770.100 (Official Build) (64-bit)
  • Operation System Windows 10 Enterprise. 64-bit
  • It didn't work locally and on the server
  • I tested this method with WAIT and without with the same result

 

Also, I can't manually delete downloaded file unless i terminate clients connection in Subject 7.

0
Comment actions Permalink
Avatar
Jonathan Hotz

Thank you for your fast response.

It helped us and we will provide fix with next release.

0
Comment actions Permalink
Avatar
Vitaly Melnik

Hello,

Was this fix implemented? I still have the same issue with "VERIFY_DOWNLOAD_COMMAND" method. It doesn't delete the file and it locks downloaded file so I can't delete it manually until I kill java process and restart subject 7 player.

Below are my steps:

1. Navigate to "https://data.hrsa.gov/" page

2. Create a locator (//*[@class="MD"]). Use any state abbr.

WEB CLICK TARGET LOCATOR Home.link.Map_Link HALT ON ERROR 
WAIT 3 HALT ON ERROR
WEB GOTO_URL "C:\Users\username\Downloads\HDW_FactSheet.pdf" HALT ON ERROR
WEB VERIFY TEXT "FY 2019 - Maryland" EXISTS IN_PDF ATTEMPTS 1 INTERVALS 1 HALT ON ERROR
VERIFY FILE_PATH "C:\\Users\\username\\Downloads\\HDW_FactSheet.pdf" PATH_TYPE NORMAL EXISTS VALIDATE DELETE_AFTER_VERIFY TIMEOUT 0 HALT ON ERROR
0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Vitaly,

Did this issue start occurring recently? 

We are checking to see what is causing it to happen again as there was a fix implemented for it a while back.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Vitaly Melnik

It's been awhile since I used this method last time so at this point not sure if it started recently or always been there.

Below is the error i'm getting

Now, file is locked and I can't delete it. To delete it, I need to kill "Java(TM) Platform SE binary" process and restart Subject 7 Player.

0
Comment actions Permalink
Avatar
Vitaly Melnik

I did some more testing and looks like this method deletes file only without extra steps that i mentioned in my flow. It works only if I run steps 1,2 and 6:

My flow:

  1. Navigate to the "https://data.hrsa.gov/" page
  2. Click on any state on the map. (it should download pdf file)
  3. Open pdf file by navigating to the specified URL where file is located. Name of the file is the same no matter which state is open but text inside is different)
  4. When file is open in the browser, verify state name in the PDF using "Verify_PDF" method
  5. Since file is open in the same Tab, next step is to navigate again to the "https://data.hrsa.gov/" page
  6. Verify if downloaded file exists and delete it. Because all files will have the same name I can use static file path and name in the step
  7. At this point Subject 7 gives me message that file is successfully identified and deleted but in reality file is not deleted. It is still located in the folder and locked by java process. I can't delete it manually until I kill java process.

When all mentioned steps are executed, "VERIFY_DOWNLOAD_COMMAND" method doesn't work as expected. Just fyi, I'm planning to put it in the loop and run this verification for all states. Flow should verify text (State name) in each pdf and delete it. As an option, I could run command line command to remove all files within each iteration but "Execute_Command" method doesn't work as of now as per my experience :( (this is currently addressed in this ticket: "https://subject7.zendesk.com/hc/en-us/community/posts/360033617714-Execute-command-details?page=1#community_comment_360014074294")

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Vitaly,

Thank you for the input. We are looking at this issue and will provide an update as soon as it's available.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hi Vitaly,

We have fixed an issue with Verify_Text_In_PDF which was causing the file to be locked and could not be deleted. This is available in release 8.19.1 which is now in production. We suggest to use a 5 second Wait step in between Verify_Text_In_PDF and Verify_File_Download commands to allow time for the file to get deleted properly. This snapshot shows a sample test case based on the information you provided.

Please let us know if you have any questions or concerns. Have a great day!

Regards,

Subject7 Team

0
Comment actions Permalink

Please sign in to leave a comment.