cancel
Showing results for 
Search instead for 
Did you mean: 

CBTA Composite script execution with single login/logout

0 Kudos

Hi,

Does anyone know how to work with composite scripts using single login and logout.

In normal process, for each script in composite , login and logout happens. Is there any way i can use single login at the beginning and a single logout at the final script.

Thanks in advance,

Pragya

Accepted Solutions (0)

Answers (2)

Answers (2)

AjayHS
Advisor
Advisor
0 Kudos

Hello,

As Paul has very described the best practice is to break the larger functionality into small piece and create modular scripts for each of the functionality. This way we attain reusability by using the same scripts when required in other e2e scenarios.

Thanks,

Aj

Paul_Babier
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

Each script inside a composite script is a standalone script.
Or it is how it was recorded. Logon, executable, logoff.
So this is why you see this behavior when you place multiple scripts in a composite script.

It allows for reusability. You can then reuse scripts in other scenarios.

The scenario you are describing can be recorded in one script, it would be an end to end process, but not reusable.
But you can logon to a SUT and Record as many transactions as you like, and logoff once done, and that one script will logon once and replay all the transactions and logoff once.

You could make a copy of the Scripts and in the first script remove the logoff command, in all but the last remaining scripts remove the launch and logon and logoff commands, and in the last script remove the launch and logon command, this should work on a ABAP system, but I have never tested it.

Paul