Herman
13 years agoContributor
Failing property test while both the expected and actual value of the Enabled property are true.
I'm trying to develop a test script to verify that menu items are correctly enabled and disabled. The tests fail with the following additional information.
Object:
Property: Enabled
Expected value: true
Actual values: true
The Delphi script code (after removing some statements) leading to the above is:
procedure VerifyPrivileges(Menu, IsVisible, IsEnabled); forward;
.
.
VerifyPrivileges(Aliase.frmMain.mnuHelp, true, true);
.
.
procedure VerifyPrivileges(Menu, IsVisible, IsEnabled);
begin
log.message(Menu.name); // The name of the object is correctly reported.
// Other statements commented out
//
aqObject.CheckProperty(Menu, 'Enabled', cmpEqual, IsEnabled);
end;
Note:
The tested application is written in VB6.
I use TestComplete 8.6.
Object:
Property: Enabled
Expected value: true
Actual values: true
The Delphi script code (after removing some statements) leading to the above is:
procedure VerifyPrivileges(Menu, IsVisible, IsEnabled); forward;
.
.
VerifyPrivileges(Aliase.frmMain.mnuHelp, true, true);
.
.
procedure VerifyPrivileges(Menu, IsVisible, IsEnabled);
begin
log.message(Menu.name); // The name of the object is correctly reported.
// Other statements commented out
//
aqObject.CheckProperty(Menu, 'Enabled', cmpEqual, IsEnabled);
end;
Note:
The tested application is written in VB6.
I use TestComplete 8.6.