File upload test step stuck/repeating step

When running a specific test case, I need to upload a single file that is used later in the test case. However, when I run the script it repeats the file upload step more than once. The amount it repeats is not consistent, sometimes it only runs once as intended, other times it runs up to 20+ times before moving to the next step.

Some extra information, if it helps:
Browser: Chrome v66
Katalon Recorder: v3.5.6
Screenshot of Test Step:

Any assistance/advice would be greatly appreciated! Thanks!

Screen Shot 2018-05-28 at 11.23.09 AM.png

Not sure what your issue is exactly? Please supply log and full test to reproduce of create a video.

type | css=input[id="NoticeOfAssessmentFile"] | /Users/mydirectory/somefile.pdf
1 Like

Hey Patrick,

Here is the logs from a version of the test case I was referring to. You’ll noticed that the upload step runs the file upload 16 times before moving onto the next function. I’ll also include a screenshot of the test case in KR so you can see how it’s constructed.

[info] Executing: | click | link=Next | |[info] Executing: | click | id=AccountForPadPayment_NewChequing | |[info] Executing: | click | name=action | |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | type | id=NoticeOfAssessmentFile | /Users/thomasspencer/Desktop/Sample.png |[info] Executing: | click | css=div.form-group.clearfix > button[name="action"] | |[info] Executing: | click | //button[@type='submit'] | |[info] Time: Mon May 28 2018 12:45:41 GMT-0400 (EDT) Timestamp: 1527525941831[info] Test case passed

Hopefully this helps clear things up. I tried creating a video, but the file size is too large for the forum. Let me know if I can provide you with anything else!

Thanks in advance!

Katalon Sample.png

Hallo @Thomas Spencer , Did you also tried my solution for the selector?