Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tagui pauses during execution run - pending replication details and logs #750

Closed
ba700113 opened this issue Mar 9, 2020 · 14 comments
Closed
Labels

Comments

@ba700113
Copy link

ba700113 commented Mar 9, 2020

When running the application, the application pauses and refuses to continue with the run. I have not seen the problem in the past but started coming up in the last couple of weeks.
For example:
if i have five scripts in my batch file to run, maybe on the first script will run and then Tagui will pause and not continue to run. I use the 64 bit installation package to install the tagui.
Note: during the run/execution, three different command prompt windows open. usually only two windows open

Can you guys help me find out what is happening?

@ba700113 ba700113 changed the title Application pauses during execution run. Tagui pauses during execution run. Mar 9, 2020
@kensoh
Copy link
Member

kensoh commented Mar 11, 2020

Hi @ba700113 can you attach your sample scripts that can reproduce the issue and the log files here? The log files are in your scripts folder, and in tagui\src\tagui_chrome.log and if visual automation is used, there are log files in tagui\src\tagui.sikuli folder. CC @siowyisheng

@kensoh kensoh added the query label Mar 11, 2020
@kensoh kensoh changed the title Tagui pauses during execution run. Tagui pauses during execution run - pending replication details and logs Mar 11, 2020
@ba700113
Copy link
Author

The scripts run and then stops when it doesn't find a png file. It will just pause and not continue to next script in batch. Like i said earlier three separate cmd windows open when the script is running.
See log file below from tagui/src/tagui.sikuli

tagui log file.zip

@kensoh
Copy link
Member

kensoh commented Mar 12, 2020

Base on the log file you attached it is working as designed. You specify app_opened.png as the image snapshot to look for to click. But that is not found on the screen. So TagUI should throw error and exit as designed.

[tagui] INPUT  - [1] click C:/POSAutomation/BOH/repos/BOH_search.png
[tagui] ACTION - click C:/POSAutomation/BOH/repos/BOH_search.png
[log] CLICK on L[74,883]@S(0) (1031 msec)
[tagui] OUTPUT - [1] SUCCESS

[tagui] INPUT  - [2] type C:/POSAutomation/BOH/repos/search.png as word[enter]
[tagui] ACTION - type C:/POSAutomation/BOH/repos/search.png as word[enter]
[log] CLICK on L[220,837]@S(0) (546 msec)
[log]  TYPE "word#ENTER."
[tagui] OUTPUT - [2] SUCCESS

[tagui] INPUT  - [3] click C:/POSAutomation/BOH/repos/app_opened.png
[tagui] ACTION - click C:/POSAutomation/BOH/repos/app_opened.png
[tagui] OUTPUT - [3] ERROR

TagUI has not been tested to run consecutively a few flows within a batch file. It sounds like you mean when run in a batch file and an image locator not found TagUI will hang. I don't have a Windows laptop to test this. Let me ask my colleague to have a look.

Hi @siowyisheng, can you help validate if running a few TagUI workflows within a batch file, if an image locator is not found, does it hang execution instead of continuing to the next flow?

@ba700113
Copy link
Author

ba700113 commented Mar 16, 2020 via email

@kensoh
Copy link
Member

kensoh commented Mar 17, 2020

It could be the processes on the computer has not ended yet and lock up the files. You can try insert the command tagui\src\end_processes.cmd each time before you run the tagui command. It will kill all processes that are dead or alive.

@ba700113
Copy link
Author

there is no file called 'end_processes.cmd' in the tagui\src\end_processes.cmd directory you gave me.
i tried to run it in my batch file and it saids cannot find it.

can you take a look again?

@kensoh
Copy link
Member

kensoh commented Mar 21, 2020

Can you share where you download TagUI? TagUI should come with this file in the zip.

CC @siowyisheng

@ba700113
Copy link
Author

Have been trying to upload the tagui version folder that i use but its too big so unable to upload it even after zipping it.

Can you rather attach the correct version of tagui for 64 bit windows machine.
Or give the link that direct me to the right version for 64 bit windows machine
Would really appreciate that
Thank you sir.

@kensoh
Copy link
Member

kensoh commented Mar 24, 2020

Sure the link to download zip is here - https://tagui.readthedocs.io/en/latest/setup.html

@ba700113
Copy link
Author

Did the installation but when i run my .txt scripts, i get the error message below:
I dont know why am getting that error message.

Tagui ERROR

@kensoh
Copy link
Member

kensoh commented Mar 25, 2020

For TagUI v6, the file extension has to be .tag and in above image your extension is .txt so it does not work. Try renaming your file to .txt and try again. There is a bug in showing the unnecessary error messages above, I'll ask my colleague to review a bug fix below.

Hi @siowyisheng bug found with .tag on Windows, spotted by user above. The log files are being converted from Linux to Windows format without checking that they exist. This was missed when testing on Windows for only positive test but not negative test. Raised PR #768 for your review and merge.

siowyisheng added a commit that referenced this issue Mar 26, 2020
#750 - exit gracefully if .tag extension not used
@kensoh
Copy link
Member

kensoh commented Mar 28, 2020

Hi @ba700113 closing issue for now but do ping here if you have new findings to share!

@kensoh kensoh closed this as completed Mar 28, 2020
@divyashreeg17
Copy link

Hi Kenosh,
I am facing this pause issue. I tried tagui\src\end_processes.cmd but even after that I am facing this issue. Please help me on this.

@kensoh
Copy link
Member

kensoh commented Dec 13, 2021

Hi @divyashreeg17 where are you based? Will you be able to join our weekly Zoom call to troubleshoot?

It is on Thursday 4-5pm SGT (UTC+8), or 130-230pm IST. Link here - #914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants