madamakis
12 years agoOccasional Contributor
How to add "NativeClrObject.Name"
Hello,
I'm very new to Testcomplete and having a really hard time to add this object into name mapping.
Since there was a new software release an object was entered and I'm having a hard time to add it to contuine. I really don't want to re-create the whole keyword test.
This was the old code:
HwndSource_Shell.Shell.Grid.ContentControl.MainViewControl.Grid.MainTabControl.TabItemView.Grid.DockPanel.Grid.Grid.MainView.CompanyFinancialStatementsView.
Grid.MainTabControl.IncomeStatementMain.Grid.FinancialItemsGrid.DataGridRow2.DataGridCell.ContentPresenter.ProbeFinancialNumberTextbox
This is the new one:
Probe50.HwndSource_Shell.Shell.Grid.ContentControl.MainViewControl.Grid.MainTabControl.TabItemView.Grid.DockPanel.Grid.Grid.MainView.CompanyFinancialStatementsView.
Grid.MainTabControl.IncomeStatementMain.----FinancialScrollViewer------.Grid.FinancialItemsGrid.DataGridRow.DataGridCell.ContentPresenter.ProbeFinancialNumberTextbox
As you can tell "FinancialScrollViewer" has been added but how in the world can I add this to Name Mapping to ccontuine my testing.
It's happening often.
Many thanks.
I'm very new to Testcomplete and having a really hard time to add this object into name mapping.
Since there was a new software release an object was entered and I'm having a hard time to add it to contuine. I really don't want to re-create the whole keyword test.
This was the old code:
HwndSource_Shell.Shell.Grid.ContentControl.MainViewControl.Grid.MainTabControl.TabItemView.Grid.DockPanel.Grid.Grid.MainView.CompanyFinancialStatementsView.
Grid.MainTabControl.IncomeStatementMain.Grid.FinancialItemsGrid.DataGridRow2.DataGridCell.ContentPresenter.ProbeFinancialNumberTextbox
This is the new one:
Probe50.HwndSource_Shell.Shell.Grid.ContentControl.MainViewControl.Grid.MainTabControl.TabItemView.Grid.DockPanel.Grid.Grid.MainView.CompanyFinancialStatementsView.
Grid.MainTabControl.IncomeStatementMain.----FinancialScrollViewer------.Grid.FinancialItemsGrid.DataGridRow.DataGridCell.ContentPresenter.ProbeFinancialNumberTextbox
As you can tell "FinancialScrollViewer" has been added but how in the world can I add this to Name Mapping to ccontuine my testing.
It's happening often.
Many thanks.
- Not quite sure if this iswhat you mean but...
You could use the map object from screen dialog to map the FinancialScrollViewer.
Then in the name mapping file drag all the children of IncomeStatementMain onto the
FinancialScrollViewer. This may force test complete to produce the dialog..."want to update tests".
If not you will have to remap the affected actions --> double click on them in the keyword test and map object from screen.
There may be a better way but i've used the above in the past.