albertopasion
14 years agoOccasional Contributor
NameMapping
I have a windows application named PX3000Client. Created testscripts for it and everything works.
Decided to include debug informations within the applications and renamed the app to PX3000Client_Debug.
I changed the following in the scripts:
TestedApps.PX3000Client.Run(1, true);
PX3000Client := Aliases.PX3000Client;
panel := PX3000Client.frmLogon4.panelConnectAndMessage.panelConnection.panelInput;
panel.editPassword.wText := 'test';
panel.btnConnect.ClickButton;
to
TestedApps.PX3000Client_Debug.Run(1, true); // added the _Debug
PX3000Client :=
Aliases.PX3000Client;
panel := PX3000Client.frmLogon4.panelConnectAndMessage.panelConnection.panelInput;
panel.editPassword.wText := 'test';
panel.btnConnect.ClickButton;
After that, the application runs but the scripts don't work anymore.
I think a have a problem with "PX3000Client :=
Aliases.PX3000Client" as far as NameMapping is concern.
Is this still correct? How can I get the test script to work with a different application name?
Thanks in advance.
Albert
Decided to include debug informations within the applications and renamed the app to PX3000Client_Debug.
I changed the following in the scripts:
TestedApps.PX3000Client.Run(1, true);
PX3000Client := Aliases.PX3000Client;
panel := PX3000Client.frmLogon4.panelConnectAndMessage.panelConnection.panelInput;
panel.editPassword.wText := 'test';
panel.btnConnect.ClickButton;
to
TestedApps.PX3000Client_Debug.Run(1, true); // added the _Debug
PX3000Client :=
Aliases.PX3000Client;
panel := PX3000Client.frmLogon4.panelConnectAndMessage.panelConnection.panelInput;
panel.editPassword.wText := 'test';
panel.btnConnect.ClickButton;
After that, the application runs but the scripts don't work anymore.
I think a have a problem with "PX3000Client :=
Aliases.PX3000Client" as far as NameMapping is concern.
Is this still correct? How can I get the test script to work with a different application name?
Thanks in advance.
Albert