martin_schoch
12 years agoNew Contributor
Renaming tests - how to do it correctly?
The story so far:
For evaluation of TestComplete, I created a new Delphi project named "TestProjectDelphi1" containing a TButton, a TEdit and a TStringGrid.
I added a test named "Test1" with a few property check points. At first, it worked fine.
Then I tried renaming "Test1" from the Project Explorer window to "TestDebug1".
On the next run of the test, TestComplete was still able to access the TButton and the TEdit, but unable to work with the string grid. At the point where the first click on the string grid was supposed to happen, "an error occured" (sic!). Here is what seems the most pertinent part of the error information:
Technical information:
97 0x80020006 (Unbekannter Name.) FRowCount.
Tested object:
Aliases.TestobjektDebug.MainFormHalloPromedico.StringGrid1
(Sys.Process('Testobjekt').VCLObject('MainFormHalloPromedico').VCLObject('StringGrid1'))
After that, I tried to rename the test "TestDebug1" back to "Test1" and run the test again.
Now, the test failed on the very first operation, clicking the button. Error message:
"The object does not exist. See Additional Information for details."
Additional Info:
Now I have two questions:
1) Is the above behavior considered normal? It seems like a bug to me, but maybe it is a known quirk of TestComplete...
2) Is there a "known to work" way of renaming tests without the test falling apart?
In other words, what should I do instead of renaming tests in the Project Explorer?
Edit and P.S.:
My operating system is Windows 8.1.
Second edit:
Support request sent, ticket number is 00044673
For evaluation of TestComplete, I created a new Delphi project named "TestProjectDelphi1" containing a TButton, a TEdit and a TStringGrid.
I added a test named "Test1" with a few property check points. At first, it worked fine.
Then I tried renaming "Test1" from the Project Explorer window to "TestDebug1".
On the next run of the test, TestComplete was still able to access the TButton and the TEdit, but unable to work with the string grid. At the point where the first click on the string grid was supposed to happen, "an error occured" (sic!). Here is what seems the most pertinent part of the error information:
Technical information:
97 0x80020006 (Unbekannter Name.) FRowCount.
Tested object:
Aliases.TestobjektDebug.MainFormHalloPromedico.StringGrid1
(Sys.Process('Testobjekt').VCLObject('MainFormHalloPromedico').VCLObject('StringGrid1'))
After that, I tried to rename the test "TestDebug1" back to "Test1" and run the test again.
Now, the test failed on the very first operation, clicking the button. Error message:
"The object does not exist. See Additional Information for details."
Additional Info:
An error occurred while accessing the "ClickButton" method or property of the "ButtonTest" object.
The object or one of its parent objects was not found.
Object Whose Method or Property Was Accessed
Alias: | Aliases.TestobjektDebug.MainFormHalloPromedico.ButtonTest |
Name mapping item: | NameMapping.Sys.TestobjektDebug.MainFormHalloPromedico.ButtonTest |
Object That Was Not Found
Alias: | Aliases.TestobjektDebug |
Name mapping item: | NameMapping.Sys.TestobjektDebug |
Now I have two questions:
1) Is the above behavior considered normal? It seems like a bug to me, but maybe it is a known quirk of TestComplete...
2) Is there a "known to work" way of renaming tests without the test falling apart?
In other words, what should I do instead of renaming tests in the Project Explorer?
Edit and P.S.:
My operating system is Windows 8.1.
Second edit:
Support request sent, ticket number is 00044673