Sync does not seem to work with SharePoint Cloud applications
Question ID: 108211
0
0

We are automating SharePoint 2013 Cloud applications and ".sync" does not seem to work at all or inconsistently.

When we debug is Test Plan, the sync appears to happen. However, when running in Test Lab, the sync doesn’t happen or happens inconsistently. We know this because if we are waiting for a page to render before acting on an Object, it tries to find the Object before it is there.

As a workaround we have increased the seconds for the Exist on the object we are trying to find, ex. .Exist(100). But even this doesn’t work all the time.

Any help would be GREATLY appreciated!

Example:
1. None of these syncs worked
‘ Browser("name:=.*").Page("title:=.*").Sync
‘Browser("name:=News Articles – New Item").Sync
‘Browser("name:=News Articles – New Item").Page("title:=News Articles – New Item").Sync
2. Ultimately had to put a wait in, Yuck! in addition to increasing the number of seconds the Exist waits
wait 10
3. Overroad default for exist with 100 seconds
If SharePoint.WebEdit("Title:=Title Required Field", "index:=0").Exist(100) Then
SharePoint.WebEdit("Title:=Title Required Field", "index:=0").Set strTitle
Call ReportToHtml(g_strScriptName,"Report","Enter Title:", "Entered: "&strTitle,"Pass",g_ScreenShot4Pass,bPrintResult)
Else
Call ReportToHtml(g_strScriptName,"Report","Enter Title:", "Cannot Enter","Fail",True,bPrintResult)
ExitComponent
End If

Marked as spam
Posted by (Questions: 4, Answers: 1)
Asked on March 21, 2018 6:14 pm
18 views
Answers (1)
0
Private answer

Have you tried using the WaitProperty method for synchronization. Have a look at this:

https://admhelp.microfocus.com/uft/en/14.50/UFT_Help/Content/User_Guide/Add_Synchronization_Point.htm

https://admhelp.microfocus.com/uft/en/14.50/UFT_Help/Content/User_Guide/Solve_Sync_Probs.htm

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on October 29, 2018 2:01 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top