Skip to Content

Login and Mutiple Test Data in CBTA

Jul 12, 2017 at 12:38 PM


avatar image

Hello experts,

I have few queries from CBTA.


Whenever I execute my script, the scripts takes the default User credentials value from Test profile which was defined while creating that script.

Now suppose, if I want to execute the same script using a different user, how can I do that? I cannot go and edit the Test Profile to pick up my user. It neither takes the RFC value from the System Data container.


How can i pass multiple sets of data for a CBTA script.

currently I defined the Test Data Container and map it to Test Configuration.

The Test configuration is assigned to SOLAR02 where I map the relevant test variant. It is possible to only assign single Test variant to a script.

The test is then executed from STWB_2.

I do not have option to map multiple Test data like in SAP TAO.

These are the 2 limitations I observed in SAP CBTA.

Appreciate if you can help me with the queries.

Thanks and Regards,

Mohamed Ziavudeen

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jim Graley Jul 26, 2017 at 07:56 AM

Hi Mohamed,

Answer to Question 1.

To resolve this issue I have defined a test script, (Z_LOGOFF_LOGON) which consists of three default components.

CBTA_GUI_A_LOGOFF does exactly what it says it logs off the system

CBTA_GUI_A_LAUNCHANDLOGON allows you to define the system, client and user details

CBTA_GUI_A_STARTTRANSACTION allows you to define the transaction to be used.

This test script is then added to the beginning of each individual test

When the test starts it will log on to the system using the default credentials from SUT but will immediately log off. The test will then log on using the credentials set in the Test data Container. I would not recommend this method with actual user names. We only use this with test users.

Answer to Question 2

Create multiple variants in your Test Data Container and assign all to the Test Configuration.

In SOLAR02, create multiple line for the same test and add a different variant to each line. These will then be available for use in Test Plans.



y5y5l.jpeg (28.0 kB)
qgepd.png (28.0 kB)
10 |10000 characters needed characters left characters exceeded