Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to execute Script in Test Plan with two different System Data Container

pradeepsingh_rawat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,045

Dear members,

I have a requirement.

I need to execute one Test Config in a Test Plan with one System Data Container and another Test Config in a Test plan with another SDC.

How to achieve this ?

Kind regards,

Pradeep

Edited by: Pradeep Singh Rawat on Mar 23, 2011 7:10 AM

8 REPLIES 8
Read only

Former Member
0 Likes
1,022

>

> I need to execute one Test Config in a Test Plan with one System Data Container and another Test Config in a Test plan with another SDC. How to achieve this ?

Currently it is not possible, to maintain more than one SDC on a test plan.

A workaround is, to maintain one SDC on a test plan and specify no target system direct in a test plan. If you maintain then your two systems in one SDC, you can specifiy each target system in the test configuration, where it is needed.

Here the example:

test plan:

systemdata container: SDC_ALL

target system: <empty>

test config 1:

systemdata container:

target system: CRM

test config 2:

systemdata container:

target system: ERP

systemdata container: SDC_ALL

target system: CRM -> rfc 1

target system: ERP -> rfc 2

Kind regards,

Christoph

Read only

pradeepsingh_rawat
Product and Topic Expert
Product and Topic Expert
0 Likes
1,022

Hi Christoph,

Thanks for your reply.

here my requirement is different which is as shown below:

SDCs are different but RFC destination is same for both Test config.

Test Plan A:

Test Config: Test Config A1

SDC: SDC A1

target system: RFC A1

Test Config: Test Config A2

SDC: SDC A2

target system: RFC A1

So, I guess your idea will not work here.

If you have any other solution so that I can both Test config in same Test Plan, then please let me know.

Best regards,

Pradeep

Read only

0 Likes
1,022

>

> SDCs are different but RFC destination is same for both Test config.

> If you have any other solution so that I can both Test config in same Test Plan, then please let me know.

Here the new example:

test plan:

systemdata container: <empty>

target system: CRM or <empty>

test config 1:

systemdata container: SDC1

target system: CRM

test config 2:

systemdata container: SDC2

target system: CRM

systemdata container: SDC1

target system: CRM -> RFC 1

systemdata container: SDC2

target system: CRM -> RFC 1

But from my opinion, it makes no sense to have SDC1 & SDC2 with target system CRM in both, which points to same RFC 1

Kind regards,

Christoph

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
1,022

Hello,

Ideally you dont create two SDC which has same RFC. Considereing that you have created.

Create two test packages in a test plan , test package has your scripts. Now you can select the test package seperately and execute in the system you intend to if you want to execute at the test package level.

Also you can add the configurations in single test package , select each one individually and execute in the intended target system.

Thanks,

Ajay

Read only

0 Likes
1,022

Hi Ajay,

Thanks for your reply.

Both Test Packages will have same attributes as of Test plan.

So, If I execute Test Packages in background then I can not execute them for two different system data contianer.

So, I think your suggestion would not work here .

Kind Regards,

Pradeep

Read only

0 Likes
1,022

>

> Both Test Packages will have same attributes as of Test plan.

Hi Pradeep,

that is a bug in the test work bench. Normally, you should be able to maintain these data by each test package separatly. Try to create an OSS message for this issue and wait for a solution by SAP.

Kind regards,

Christoph

Read only

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Likes
1,022

Hello Pradeep,

You can create two different Test Plan then with the same Test configuration and execute in two different system.

Thanks,

Ajay

Read only

0 Likes
1,022

Hi Christoph,

I raised message and I got below reply.

In the SAP Basis standard the automatic test attributes are

test plan attributes that appear as read-only attributes

on the test package UI independently on the edit mode.

Kind Regards,

Pradeep