SAP Knowledge Base Article - Preview

2449139 - How to resolve common "CBTA Unable to Record" issues


While trying to record a CBTA Script, error: Unable to connect to SUT, the following errors are encountered:


  1. It failed to connect and the result "Connection Timed Out" can be seen as indicated below.
  2. The Host/IP Port used are visible as well:



  1. The connection is working in this case the issue with Secure Network Communication (SNC).
  2. In this case, there is a value for SNC_PARTNERNAME.

    niping okay but SNC still fails  - note for CBTA to ignore the SNC settings.png
  3. This suggests that SNC is enabled on the SUT and CBTA is trying to use it


  1. Security alert in TAFTestRecorder.dll & TAFGuiScripting.dll properties. In this case, the security message states this file came from another computer and might be blocked to help protect this computer.
  2. In this situation, depending on the security settings in place on your computer, Windows will activate a security system that tags the origin of the files. For instance, it knows if a file is coming from the computer (local), the internal network or the Internet. If the file is coming from the Internet, then windows will not consider it safe and will block it. This is why the security message is seen as indicated below in the TAFTestRecorder.dll & TAFGuiScripting.dll.

CBTA KBA 1.pngcbta kba 2.png


When the following User Parameter is set to "True"
- sapgui/nwbc_scripting

2019-07-16 01:51:08,137 |    ERROR | MainThread          | GuiScriptingControl                | AuthenticateUser method: Unable to login into the system.System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))
   at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
   at SAPFEWSELib.ISapControlTarget.set_Text(String )
   at SAP.TAO.GuiScripting.Spy.GuiScriptingControl.AuthenticateUser(GuiSession gSession, SapGuiCredentials cred)
2019-07-16 01:51:09,274 |    ERROR | MainThread          | TestCreationWizardScenarioTO1      | Error occurred - TO1 PFA begin. Error is: System.Exception: Error while starting the recording
   at CBTA.TestCreationWizard.TestCreationWizardScenarioTO1.Record()
2019-07-16 01:51:09,277 |    ERROR | MainThread          | TestCreationWizardRecordingStep    | Unable to start the recording!

# 5

CBTA cannot access SAP GUI systems due to usage of SAP Routers. Recording and execution of CBTA test scripts fails with this error: 
ERROR | MainThread          | CheckPicker                        | Unable to open SAP Gui on system <routerstring>



  • SAP Solution Manager 7.1
  • SAP Solution Manager 7.2


SAP Solution Manager 7.1 ; SAP Solution Manager 7.2


Component Based Test Automation SNC MIGHT BE SINGLE SIGN ON Secure Network Communication Security Trusted icm user_scripting

CBTA - GUI - Using SAP Routers.docx

, KBA , SV-SMG-TWB-CBT , Component-based Test Automation , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.