joffre
14 years agoRegular Contributor
TestComplete Script Configuration
When I record my actions, TestComplete saves the following script:
When my co-worker records the same actions, TestComplete saves the following script:
What do I need to change on my TestComplete's configuration to make my actions being saved like his actions?
He told me to go on Tools Menu and select Options. Then Engines > Name Mapping and check all the options, but it didn't work.
Dim fpw5_cadcalc
Dim control
Dim control2
Dim control3
Dim edit
Set fpw5_cadcalc = Aliases.FPW5_CADCALC
Set control = fpw5_cadcalc.Form1
Call control.MainMenu.Click("Tabelas|Básicas|Empresas")
Set control2 = control.MDIClient.cdEmpresas
Set control = control2.Frame1
Set control3 = control.cboEmp
Set edit = control3.Edit
Call edit.Keys("[Caps]")
control3.wText = "NOME DA EMPRESA"
Set control = control2.fraDadosGerais
Set control3 = control.txtNomeFant
control3.wText = "NOME DA FANTASIA"
Set control3 = control.txtNumCAGED
Call control3.Keys("123")
Set control3 = control.txtNumFunc
Call control3.Keys("123")
Set control3 = control.txtDataRef
Call control3.Keys("10062011")
Set control = control2.fraTabProprias
Call control.chkIndTabProprias.ClickButton(cbChecked)
fpw5_cadcalc.dlgFPWCadastrosEC_lculosMensagem.btnOK.ClickButton
Call control.chkIndTabSalario.ClickButton(cbChecked)
control2.btnCadMod.ClickButton
fpw5_cadcalc.dlgFPWCadastrosEC_lculos.btnOK.ClickButton
control2.btnFechar.ClickButton
When my co-worker records the same actions, TestComplete saves the following script:
Call Aliases.FPW5_CADCALC.Form1.MainMenu.Click("Tabelas|Básicas|Empresas")
Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.Frame1.cboEmp.wText = "nome da empresa 546542"
Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.fraDadosGerais.txtNomeFant.wText = "fantasia"
Call Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.fraDadosGerais.txtNumCAGED.Keys("1321")
Call Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.fraDadosGerais.txtNumFunc.Keys("21")
Call Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.fraDadosGerais.txtDataRef.Keys("10062011")
Call Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.fraTabProprias.chkIndTabProprias.ClickButton(cbChecked)
Aliases.FPW5_CADCALC.dlgFPWCadastrosEC_lculosMensagem.btnOK.ClickButton
Call Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.fraTabProprias.chkIndTabSalario.ClickButton(cbChecked)
Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.btnCadMod.ClickButton
Aliases.FPW5_CADCALC.Form1.MDIClient.cdEmpresas.btnFechar.ClickButton
What do I need to change on my TestComplete's configuration to make my actions being saved like his actions?
He told me to go on Tools Menu and select Options. Then Engines > Name Mapping and check all the options, but it didn't work.