lcravopt
13 years agoNew Contributor
"WinFormsObject" in object name when runing TestComplete script
Hi,
I'm using Testcomplete 8.7 to automate some tests on a .NET WindowForms application and I’m having some troubles with TestComplete\TestExecute to detect some objects.
The problem is that, for example, I have an object mapped as:
Aliases["AppName"]["AppNameForm"]["m_panelClientArea"]["m_splitContainerBottom"]["SplitterPanel"]["NavigerResept"]["m_searchControl"]["m_txtSearch"]
But when TestComplete or TestExecute runs it’s detecting the same object as:
Aliases["AppName"]["WinFormsObject"]("AppNameForm")["WinFormsObject"]("m_panelClientArea")["WinFormsObject"]("m_splitContainerBottom")["WinFormsObject"]("SplitterPanel", "",1)["WinFormsObject"]("NavigerResept")["WinFormsObject"]("m_searchControl")["WinFormsObject"]("m_txtSearch")
The ["WinFormsObject"] is being added to the object aliases, so TestComplete is unable to recognize the recorded and the execution fails.
This doesn’t happens every time. Sometimes the application is launched and the names are as expected.
Each automated test as the following structure (Test Items):
Parent
Can you help me to overcome this problem?
Thank you,
Luis
I'm using Testcomplete 8.7 to automate some tests on a .NET WindowForms application and I’m having some troubles with TestComplete\TestExecute to detect some objects.
The problem is that, for example, I have an object mapped as:
Aliases["AppName"]["AppNameForm"]["m_panelClientArea"]["m_splitContainerBottom"]["SplitterPanel"]["NavigerResept"]["m_searchControl"]["m_txtSearch"]
But when TestComplete or TestExecute runs it’s detecting the same object as:
Aliases["AppName"]["WinFormsObject"]("AppNameForm")["WinFormsObject"]("m_panelClientArea")["WinFormsObject"]("m_splitContainerBottom")["WinFormsObject"]("SplitterPanel", "",1)["WinFormsObject"]("NavigerResept")["WinFormsObject"]("m_searchControl")["WinFormsObject"]("m_txtSearch")
The ["WinFormsObject"] is being added to the object aliases, so TestComplete is unable to recognize the recorded and the execution fails.
This doesn’t happens every time. Sometimes the application is launched and the names are as expected.
Each automated test as the following structure (Test Items):
Parent
KeywordTest to do a DB restore
KeywordTest to start the app (TestApp) and perform the login
KeywordTest to execute the test (this is the main script)
KeywordTest to close the app
Can you help me to overcome this problem?
Thank you,
Luis