Forum Discussion

colinstrydom's avatar
colinstrydom
Occasional Contributor
10 years ago

Keyword test changes after test execution

Good day

 

I recently upgraded to the latest version of TestComplete, so this issues could be from any number of the new versions.

 

TestComplete randomly changes my keyword tests. I cannot replicate the issue every time. Sometimes, when I revert, and run the test again, it does not change the keyword test. Here is an example of changes when opening via notepad. The changes are not visible withing TestComplete, the application picks up there were changes. This now interferes with my continues integration projects.

 

I'll try to attach the files

 

As I cant attached file, I'll try to illustrate the cahnges here. Thisg get re-named and moved around. Any idea what can cause this? PS, bitmap shortened to make reading easier

 

Original file

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<Root Signature="{B9D9273E-7266-43E0-BF02-97F168593604}" Version="9.0">
<TestData Description="" Type="{79147B28-EE20-4294-B773-1D3787FBF37B}">
<Data>
<Extenders>
<NodeBitmaps>

<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow" Data="61717A6970E9071601000000360400007801A55
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView4.ModalDialogView.UserSetupView" Data="61717A
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow.ManagerWindow.ContentControl.ManagerView" Data
<Bitmap Name="Aliases.CompuLoanManager" Data="61717A6970E90716010000003604000078017593FB538C511CC63F66FC01FE04
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView7" Data="61717A6970E9071601000000000000007801
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView7.ModalDialogView.UserGroupManageView" Data="
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView4" Data="61717A6970E9071601000000000000007801
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView4.ModalDialogView" Data="61717A6970E907160100
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow.ManagerWindow" Data="61717A6970E90716010000003
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow.ManagerWindow.ContentControl" Data="61717A6970
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView7.ModalDialogView" Data="61717A6970E907160100

</NodeBitmaps>

 

New File

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Root Signature="{B9D9273E-7266-43E0-BF02-97F168593604}" Version="10.0">
<TestData Description="" Key="{5A2B351B-6BDA-4823-9234-76BAEA1267B4}" Type="{79147B28-EE20-4294-B773-1D3787FBF37B}">
<Data>
<Extenders>
<NodeBitmaps>

<Bitmap Name="Aliases.CompuLoanManager" Data="61717A6970000000010000003604000078017593FB538C511CC63F66FC01FE04
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow" Data="61717A697000000001000000360400007801A55
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow.ManagerWindow" Data="61717A6970000000010000003
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow.ManagerWindow.ContentControl" Data="61717A6970
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ManagerWindow.ManagerWindow.ContentControl.ManagerView" Data
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView4" Data="61717A697000000001000000360400007801
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView4.ModalDialogView" Data="61717A69700000000100
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView4.ModalDialogView.UserSetupView" Data="61717A
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView7" Data="61717A697000000001000000360400007801
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView7.ModalDialogView" Data="61717A69700000000100
<Bitmap Name="Aliases.CompuLoanManager.HwndSource_ModalDialogView7.ModalDialogView.UserGroupManageView" Data="

</NodeBitmaps>

4 Replies

  • I know that our data files are versioned, and it looks like you are going from version 9 to version 10.  Are you?  If so, what happens if you save your project in version 10 and then rerun your tests on the version 10 based project?

    • colinstrydom's avatar
      colinstrydom
      Occasional Contributor

      Thanks for the reply. So the few TC9 scripts have now been converted, and saved, so they are not a aproblem anymore.

       

      However, there are now still a few that state they have changed, after execution and I close TestComplete. I have used diff to compare before and after a run and the files have not physically changed. So I have no idea what TestComplete is seeing that gets changed.

       

      I can use the silent option when running, but I would rather fix a potential problem in my script, then going the silent route

      • joseph_michaud's avatar
        joseph_michaud
        Moderator

        This may be a problem with TestComplete itself and not your test.  I've heard of a similar problem with project files (but not with keyword tests).

         

        I think more investigation is needed.  Please open a support case.