mario_didonna
12 years agoNew Contributor
Changing Windows Forms names
Dear Sir or Madam,
I'm using TestComplete 7.52.678.5 with Windows7 64-bit, testing a framework that draws upon the .NET framework.
When I record an operation inside of a dialog, the name of the dialog is recorded as "wndWindowsForms10Window8app033c0d9d1", but when I play this step back it doesn't work because the name of the dialog is now "wndWindowsForms10Window8app033c0d9d1"; the last character is different.
I need some logic that will just identify an opening string in the name of a Windows Form name so that I can send the playback command to the right destination. Can someone help me with this topic?
Yours sincerely, Mario
I'm using TestComplete 7.52.678.5 with Windows7 64-bit, testing a framework that draws upon the .NET framework.
When I record an operation inside of a dialog, the name of the dialog is recorded as "wndWindowsForms10Window8app033c0d9d1", but when I play this step back it doesn't work because the name of the dialog is now "wndWindowsForms10Window8app033c0d9d1"; the last character is different.
I need some logic that will just identify an opening string in the name of a Windows Form name so that I can send the playback command to the right destination. Can someone help me with this topic?
Yours sincerely, Mario
- You would need to change the name within the object mapper to
"wndWindowsForms10Window8app033c0d9d*" That way no matter what the last digit is, the object will remain the same.