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!
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!