- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2019 08:31 AM
Hello everybody,
This is pretty much a follow up post from this post.
I am using Kingston and I was running into problem with getting the RITM number and having it approved. Now, it is working but not completely the way I want it. Below is a screenshot, so take a look at it and focus on Stage and I am explaining the problem below.
So, it is a Catalog Item, and both the records you see is exactly the same. The only difference is, the bottom entry approval was done manually and approval process is working the way it's supposed to be. The top entry was done using ATF and for some reason, after going through Approver 1, it terminates and does not go to Approver 2. I then split the test into 2 parts and then I see an error saying "Security constraints prevent access to requested page" as a screenshot. How do you fix this issue?
I tried server side approval by following this tutorial and modifying a little bit by following my previous post. I still run into the same issue but with a different error saying "No records matching query | Approval for = (empty)" when it goes to Approver 2. I did make the reference to use the same RITM number from Approver 1 but it does not exist for Approver 2.
Here are my steps and more screenshots regarding few other concerns.
- Impersonate (as User 1)
- Open Catalog Item
- Set Variable Values
- Order Catalog Item *1(see below)
- Impersonate (as Approver 1)
- Record Query (Table: sc_req_item, Request: Step 4: Order Catalog Item > Request)
- Record Query (Table: sysapproval_approver, Approval for | is | Step 6: Record Query > First record)
- Open an Existing Record (Table: sysapproval_approver, Record: Step 7: Record Query > First record)
- Click a UI Action (Table: sysapproval_approver, UI action: Approve) *2(see below)
- Impersonate (as Approver 2)
- Open an Existing Record (take query reference from Step 7)
- Click a UI Action [Failure: Failed to find UI Action 'Approve' on 'sysapproval_approver' form. See screenshot]
*1
This is not a problem but even when I do it, I see this page
*2
But why am I seeing it here again
And when I split the test into 2, when UI Action clicks on Approve, I see "Security constraints prevent access to requested page". Any suggestion how to fix this would be greatly appreciated.
Thank you
Solved! Go to Solution.
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 07:06 AM
hmmm.... will need to investigate deeper.
When I review the list steps you mentioned,
It is possible you was doing wrong on Step #7 and you didn't do another record query for a second approval.
Try this way,
Step #7 Record Query - Table: sysapproval_approver.
Conditions: Approval for is Step #6. Approver is Approver 1.
Add new step #10 after step #9
New step #10 Record Query - Table: sysapproval_Approver.
Conditions: Approval for is Step #6. Approver is Approver 2.
Step #11 Impersonate Approver 2
Step #12 Open Existing Record (from new Step #10 record query)
Step #13 Click UI Action (approve)
If the above doesn't work, do you have a screenshot for step #9 (screenshot should show approval form) and also another screenshot for validation on first approval to make sure it actually approved before doing second approval? Having a screenshot help a lot for narrow down to find the root cause.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 07:06 AM
hmmm.... will need to investigate deeper.
When I review the list steps you mentioned,
It is possible you was doing wrong on Step #7 and you didn't do another record query for a second approval.
Try this way,
Step #7 Record Query - Table: sysapproval_approver.
Conditions: Approval for is Step #6. Approver is Approver 1.
Add new step #10 after step #9
New step #10 Record Query - Table: sysapproval_Approver.
Conditions: Approval for is Step #6. Approver is Approver 2.
Step #11 Impersonate Approver 2
Step #12 Open Existing Record (from new Step #10 record query)
Step #13 Click UI Action (approve)
If the above doesn't work, do you have a screenshot for step #9 (screenshot should show approval form) and also another screenshot for validation on first approval to make sure it actually approved before doing second approval? Having a screenshot help a lot for narrow down to find the root cause.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 07:18 AM
Oh man, I don't know what kind of magic you pulled but this worked. I spent so much time trying to figure out how to fix it, but your answer helped me. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 07:25 AM
I am glad it helped! It is important to use record query to capture specific record ID, especially you have multiple approvals, tasks, etc. If ATF open approval without specific ID, it will randomly pick 1 of multiple approvals that assigned different approver and you use the wrong approver, that could cause this issue. When you have specific ATF approver name, use record query to match approval record that is assigned to your ATF approver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2019 12:24 PM
I've been having the same problem, however mines will work the first time and once I test it again it will fail. Any idea why? I can add pictures as well if needed thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2019 12:38 PM
Hi DefinitelyNotTheMan,
Since this issue is already solved for someone_passing_by. Can you please post your own new issue in the developer forum and let me know so that I can help you solve your problem.