falcron
14 years agoOccasional Contributor
Web test fails randomly
I am getting random "The item was not found" errors when testing my web app. My test run will randomly fail at different locations in my test but always when trying to click this button. However, the issue is not with wildcards in my namemapping (those are all covered). The issue is how TestComplete is seeing the object. What could cause this? Would it *have* to be that a different page is being received? How can I go about telling this manually?
The object as recorded is:
Aliases.firefox.pageBackupOnlineRemoteDataBackup4.panelContainer.panelContent.panelBgComputers.panelProfileRow7267534.panelSettingsRowSmall.linkViewLog
Sometimes, it will fail to click this link, thus failing the test... and when I inspect it afterward, it will inspect one of three seemingly random ways which explains why it was not found, but I don't get why this would happen randomly. My web devs have assured me that the page itself is not different.
The three ways it identifies after failure are as follows (Note the first one where the 4 changes to 6):
Aliases.firefox.pageBackupOnlineRemoteDataBackup6.panelContainer.panelContent.panelBgComputers.panelProfileRow7267534.panelSettingsRowSmall.linkViewLog
Aliases.firefox.pageBackupOnlineRemoteDataBackup4.panelContainer.panelProfileRow1206321.panelSettingsRowSmall.linkViewLog
Aliases.firefox.pageBackupOnlineRemoteDataBackup4.panelContainer.Panel("Profile_row_12057_30").Panel(0).Link(0)
The object as recorded is:
Aliases.firefox.pageBackupOnlineRemoteDataBackup4.panelContainer.panelContent.panelBgComputers.panelProfileRow7267534.panelSettingsRowSmall.linkViewLog
Sometimes, it will fail to click this link, thus failing the test... and when I inspect it afterward, it will inspect one of three seemingly random ways which explains why it was not found, but I don't get why this would happen randomly. My web devs have assured me that the page itself is not different.
The three ways it identifies after failure are as follows (Note the first one where the 4 changes to 6):
Aliases.firefox.pageBackupOnlineRemoteDataBackup6.panelContainer.panelContent.panelBgComputers.panelProfileRow7267534.panelSettingsRowSmall.linkViewLog
Aliases.firefox.pageBackupOnlineRemoteDataBackup4.panelContainer.panelProfileRow1206321.panelSettingsRowSmall.linkViewLog
Aliases.firefox.pageBackupOnlineRemoteDataBackup4.panelContainer.Panel("Profile_row_12057_30").Panel(0).Link(0)