cancel
Showing results for 
Search instead for 
Did you mean: 

How to use composite test to combine different scripts based on different systems?

nick_liu
Advisor
Advisor
0 Kudos

Hi Expert,

I met one scenario that customer want to combine two scripts which are based on different systems into one composite test script. For example, I create one sales order on ECC system and then I hand over the order number to another system like CRM.

What I currently find out that if I want to use composite test for this, I need firstly to create two composite tests and each composite contains one script. Then I need to use a third composite test to combine the two composites together and thus I can run the two scripts on different systems. So I'm wondering if there's easy way to use one composite and contains different scripts based on different systems? These systems may not be in one logical component. Thanks.

Best Regards,

Nick

sady_2015
Participant
0 Kudos

Hey Ajay, this is great information. Thank you. I have a scenario where i need to compare the data between RE5 and RE7 (e.g. post something in RE5 and validate in RE7 that the same data is replicated. Does the above solution that you mentioned apply to this scenario also? is there a better way to automate my scenario? Any inputs will be greatly appreciated. Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nick.

Yes this approach is possible. You can simply create separate test configurations for each SUT and prepare input and output parameters. After that composite test can be created. Add those test configurations in and link your parameters together. Simple as that.

Each SUT needs to be properly connected via managed system configuration, than special configuration for CBTA is needed (TST_<SID>CLNT<CLNT> RFC, User, parameters and so on) and then SDC updated and test profiles set up. Then if each script is working then it is OK to add them in composite test.

I personally created few of these composite tests where information were transferred from customer's web applications to CRM and then to ERP.

Hope it helps.

Bye.

former_member427503
Discoverer
0 Kudos

Hi, i understand what your are meaing. I have the Problem, when i start my Composite TC then SAP wants evertime a systemroll i want to use two different Systemrolls. 1st for ERP 1nd für f.e CRM.

So can you explain how you can create one Composite TC for different Systems?


Thanks

Best Regard

Answers (10)

Answers (10)

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sadhna,

You can always compare values using checkpoint, if there is value created in one of the test script, which will impact on the value in second test script you can use checkpoint to validate the value.

You can also export the value from one script to the other script.

Thanks,

Aj

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello RS,

Is the issue resolved ?

Thanks,

Aj

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello RS,

You will have to create wrapper script for each of your CBTA script. Create Composite wrapper script for each of your CBTA script.

Once that is done Create a master script where you will call each of the Composite wrapper scripts. Also for the second script you will have to activate the checkbox Create Session under Test Options which is available when you select the 2nd composite script.

Also you need to specify the Target component which will refer to the other system on which your second Composite script runs.

Hope it helps.

Thanks,

Aj

sady_2015
Participant
0 Kudos

Hey Ajay, this is great information. Thank you. I have a scenario where i need to compare the data between ECC RE5 and RE7 (e.g. post something in RE5 and validate in RE7 that the same data is replicated. Does the above solution that you mentioned apply to this scenario also? is there a better way to automate my scenario? Any inputs will be greatly appreciated. Thanks.

0 Kudos

Hello Aj,

thank you for your answer. To be more specific, I have 2 different CBTA test scripts. The first script starts a Fiori app and the second a transaction. Both are on different systems. If I now start the composite tests, the first script is properly started because I have also specified the executable unit in the Comp. Test. But if the second script should start, the script will hang when logging on the system, since I'm in Comp. Test did not specify this system.

How can I run the test on different systems?

Many Thanks!

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello RS,

You can use Target Component within the Test Script tab of Test Configuration to refer to different system.

Thanks,

Aj

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ramon Soro,

What details are you looking at ? referring scripts to be executed on different system ?

Thanks,

Aj

0 Kudos

Hello Ajay Hoskote,

i lookin for some Informations about Testtings for example 3 different cbta testscripts in a composite test with different Systems.

thanks

RS

0 Kudos

Hi,

Is there any guidance on this topic?best regards
Former Member
0 Kudos

I believe this is the right approach. I did this a year ago so I am a little fuzzy on the details.

I went into SOLAR_PROJECT_ADMIN and opened the project that has the test cases your are creating. In the System Landscape tab I added the logical component so now all SIDs in your test scenario are in your project's landscape. Then in the Business Blueprint I manually added the structure and transactions for the new landscape.

I edited the System Data Container (SDC) to include the new target system with the additional logical component. In SUT Management I synchronized the SDC so the new logical component shows up in the hierarchy. I was then able to add the connection (RFC and user accounts) for the new landscape.

After all this I can create a new CBTA test case and point to the SUTs under either logical component and use the appropriate test profile to log in. You can also create one composite that calls all scripts in your E2E scenario. Hopefully this makes sense at a high level and somebody else can correct or validate what I described.

Former Member
0 Kudos

Hi Nick,

I am also in the same phase, i am trying to run CRM test script first and then to run ECC script. I did follow the same step that you have mentioned. But i am wondering after CBTA_GUI_A_LAUNCHANDLOGIN step, how did you handle to run next steps, Did you plug in the recorded script or or did you record the script or did you put the components manually into test script.

Should be appreciated.

Thank you

nick_liu
Advisor
Advisor

Hi Kalyan,

By using CBTA_GUI_A_LAUNCHANDLOGIN, you may have to copy all the rest components into your main script.

Best Regards,

Nick

TomCenens
Active Contributor
0 Kudos

Hi Nick

Not sure and I haven't tried this but an idea could be to start on first system and then use a RFC destination on that first system (again not sure this is supported) to jump to the second system. Worth a try I would think.

Best regards

Tom

nick_liu
Advisor
Advisor

Hi Tom,

Thanks your advice, I found in CBTA, there's one component named: CBTA_GUI_A_LAUNCHANDLOGIN, by which you can logon another system. But in this way, I have to record all the steps into one script.

The meaning we use composite test is to separate the scenarios by recording script for each scenario and it's easier to maintain. So I still wonder if there's any other way to use composite test for different systems.

Best Regards,

Nick