Question
Pegasystems Inc.
JP
Last activity: 22 May 2018 16:25 EDT
WaitForCreate doesn't work on Parallel Process
I'm using WaitForCreate on Parallel process and sometime it doesn't work correctly.
The logfile shows WaitForCreate can not find window and finally WaitForCreate timeouted and automation can not click OK button on Pop up window.
Is there any possibility when I use WaitForCreate on Parallel process?
Please check attached file I attached automation and logfile capture.
***Moderator Edit: Vidyaranjan | Updated Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
SR was resolved by adding in corrected match rules, which was the source of this issue.
Pegasystems Inc.
US
I think your issue is that the dialog is modal. The log provided is not complete enough to speculate, however I have seen this before. Typically I would perform the click that initiates the dialog on one thread and then wait for create and dismiss the dialog on another as you have done. Do you ever see Web_ match in the log?
One thing you can try is to use a Signal component. Have the Web_.Created event dismiss the dialog (by clicking btnOK) and then call the SignalAll method of a Signal component you add to your Global Container. In your automation, after you call PerformClick on button1 call the Wait method of the Signal. If that returns true, then you can continue with the PerformDoubleClick method (the one you call after btnOK.PerformClick in your screenshot).
Pegasystems Inc.
JP
I will try your suggestion but it seems differently with modal dialog. It seems Pop up window.
Does Signal component work Pop up window too?
I created document which has log file in Success case and Error case.
It also has screen capture of automation.
Please check the attached file.
Pegasystems Inc.
JP
Pegasystems Inc.
US
The partial logs provided here aren't really helpful unless you post more of them along with the adapter (either of which may contain sensitive information, so you should be careful to remove that).
I would suggest you open an SR to get support to assist you with this specific issue. I do believe my suggestions will work though, as I have used them before for a similar popup. If you do open an SR with support, please post the number here, so the moderators can track it.
Pegasystems Inc.
US
One thing you might try is making the PerformClick on the button that generates the popup asynchonous.
Pegasystems Inc.
JP
Hi, I both tried asynchonous and signal component.
But both doesn't work.
I attached the screenshot of signal setting.
When I apply asynchonous, most of the time this setting work well but sometime popup wasn't clicked.
When I use signal component it always return false on wait method of signal component.
I've already created SR but could you check our setting of signal component?
Pegasystems Inc.
US
You should perform the wait off of the parallel process instead of after it, however I do not think that is your issue. I think you should open an SR to have one of our support team look at this on your machine. I suspect it would be easy to determine the issue there.
If you do open an SR, please record the number here for tracking and resolution purposes.
Pegasystems Inc.
JP
Accepted Solution
Pegasystems Inc.
US
SR was resolved by adding in corrected match rules, which was the source of this issue.
Pegasystems Inc.
JP
Pegasystems Inc.
US
You should be careful not to try to work with a UI on two threads. All calls will be marshalled to the application's UI thread and you could get into a race condition where one thread blocks the other. I would not use a parallel process here but instead a WaitForEvent.
Pegasystems Inc.
US
Has your issue been resolved?
Accenture
IN
Hello All ,
Please remember the below solution criteria when a particular thing is not working
1. Check for the match rule (Do use right match rule and if required do partial matching)
2. Place of the method you are using
3. Test only that part of the code block
4. If you are unable to get a solution , Then post a question here with complete log files and screenshots and if possible a recording as well .
-
yang chen