cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in running the scripts in Remote machine

SOLVED
ParimalaDoddi
Occasional Contributor

Problem in running the scripts in Remote machine

 

We are working on Desktop Application.
TestComplete and Application are installed in Remote machine.
Connecting to Remote machine via VPN and
executing the scripts in TestComplete which is installed in Remote machine.
But the scripts are not executing and generating errors like "Waiting for objects",
i.e controls are not getting identified of the application to be tested.
TestComplete Version: 14.60.274.7 x64
Any suggestion would be greatly appreciated.

2 ACCEPTED SOLUTIONS

Accepted Solutions
anupamchampati
Community Leader

Re: Problem in running the scripts in Remote machine

Generally Test execution requires screen to be active, on disconnecting the remote desktop it does not find any object and test will fail stating Waiting for objects.

 

Use batch file or the below command to get disconnected from the remote desktop and keeping the Machine active.

 

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/in-minimized-window.htm...

 

Batch file code to execute in Remote Desktop : 
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)

View solution in original post

ParimalaDoddi
Occasional Contributor

Re: Problem in running the scripts in Remote machine

Hi All,

 

Thanks for your support and quick responses. Problem is resolved, thought of sharing the solution.

 

Setup:

TestComplete is installed in RDP and scripts are available in it.

Connected to RDP from Laptop via VPN.

 

Problem:

With the above setup, unable to run the scripts in RDP using TestComplete. Generating the error in the log as "The object "XXXXXX" does not exist.  But the object will be available in name mapping window and mapping to the control can see from the Object Browser.

 

Solution:

When we connect to RDP from Laptop,

Laptop resolution settings will be applied to the RDP and Applications.

It looks like controls in the application are enlarged and TestComplete is unable to find the controls based on the co-ordinates it is saved before.

For this we need to adjust the resolution of Laptop before connecting to the RDP.

 

Example:

This problem existing for Laptop model latitude 5510 which has high resolution 1920X1080.

Can be adjusted to 1600x900 to execute the scripts properly.

For Laptop Model latitude 5300, it worked fine as its resolution is 1366x768.

 

Thanks,

Parimala Doddi

 

View solution in original post

10 REPLIES 10
AlexKaras
Community Hero

Re: Problem in running the scripts in Remote machine

Hi,

 

Any suggestion would be greatly appreciated.

Login to the remote machine, start TestComplete and verify if tests can be executed with or without errors.

Debug errors if any.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
ParimalaDoddi
Occasional Contributor

Re: Problem in running the scripts in Remote machine

Hi,

Yes, we are executing the scripts in Remote machine in TestComplete after login to the remote machine.

Scripts are executing perfectly in our local machine but in Remote machine with the same steps, it is not identifying the various objects of the application.

 

Thanks,

Parimala Doddi

AlexKaras
Community Hero

Re: Problem in running the scripts in Remote machine

Hi Parimala,

 

With TestComplete installed on the remote machine you have all power of its IDE and debugger. So just open test project on the remote machine and check with the Object Browser how controls are identified there. Debug and figure out the differences between local and remote machines which cause test code to fail.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
ParimalaDoddi
Occasional Contributor

Re: Problem in running the scripts in Remote machine

Hi Alex,

 

Thank you for swift reply.

Yes Alex, there is a proper object mapping to the controls in remote machine, same mapped objects are using in

scripts. Scripts wise there is no difference between local and remote machine. Generating the error in the log as "The object "XXXXXX" does not exist.  But the object will be available in name mapping window and mapping to the control can see from the Object Browser.

I believe this may not be the problem with object mapping because all the scripts are generating the error like

"Waiting for the object".

 

Thanks,

Parimala Doddi

 

jkrolczy
Frequent Contributor

Re: Problem in running the scripts in Remote machine

Does run TestComplete as an Admin help ?

JamesK
ParimalaDoddi
Occasional Contributor

Re: Problem in running the scripts in Remote machine

Hi,

Executed TestComplete and Application in an Admin mode but still problem exists.

Any other thoughts?

 

Thanks,

Parimala Doddi

jkrolczy
Frequent Contributor

Re: Problem in running the scripts in Remote machine

I wonder if your Name Mapping used from the working side is throwing off the Remote side when being run.

 

I do not use Name Mapping.

I do scripting and not KeyWord scripts.

 

I would suggest on the Remote machine ... try to create/record a new script there and run it.

 

From the broken side, maybe in your test script add Log.Message statements along your script flow to see 

where the script run is executing to at all.  If the script run is proceeding into your script something is running.

Again, you may need to look specially into your Name Mapping to be sure your Remote machine has no issues on how those are setup vs. your local side.

 

 

 

JamesK
anupamchampati
Community Leader

Re: Problem in running the scripts in Remote machine

Generally Test execution requires screen to be active, on disconnecting the remote desktop it does not find any object and test will fail stating Waiting for objects.

 

Use batch file or the below command to get disconnected from the remote desktop and keeping the Machine active.

 

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/in-minimized-window.htm...

 

Batch file code to execute in Remote Desktop : 
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)

View solution in original post

sonya_m
Community Manager

Re: Problem in running the scripts in Remote machine

Thanks, Community!

 

@ParimalaDoddi Looks like you've received a couple more suggestions, do they answer your question? If so, please mark the best one as a solution.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors