cancel
Showing results for 
Search instead for 
Did you mean: 

How do I import data from text file to the Test Data Container for a CBTA script ?

vijayjeethuri
Participant
0 Kudos

I have created a test script using CBTA Tool, I want to take data from TXT file (External Variant) in TDC, May I know the process how to do this

Thanks for your help

Regards,

Vijay Jeethuri

Accepted Solutions (1)

Accepted Solutions (1)

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vijay,

Within the Test Configuration you have the option of external variant, select this radio button for input of the values through notepad file.

Thanks,

Aj

Answers (4)

Answers (4)

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vijay Vikrant,

Please raise your query as a new thread as the current thread is already closed.

Thanks,

Aj

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vijay,

Yes you can do that , please let me know if you are executing from Test Plan or executing the Test Configuration directly.

If you are executing from the Test Plan then you need to select the variant which you want to execute in the Test selection tab of the Test Plan

If you are executing from the Test Configuration then you have the option of selecting the variants to be executed at run time.

Thanks,

Aj

vijayvv
Explorer
0 Kudos

Hi Ajay,

I have a question: In ME21N or ME51N how can we enter multiple line items in the SAPGrid table dynamically using CBTA? The same script should work for 5 -10-20-50 or 100 line items. Is there a way we can handle this issue?

Thanks,

Vijay

0 Kudos

Hi Ajay,

Can you please tell how to select specific variants (Eg. Var3 to Var5) from Test Plan to execute as I am not able to find any option to do so.

I am able to select it easily when executing from test configuration.

Thanks,

Deepika Aggarwal

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Deepika,

This is possible by specifying variant needed in the Test Case tab of the Test Plan creation. Once selected create test package and assign to the tester.

Thanks,

Aj

vijayjeethuri
Participant
0 Kudos

Hello Ajay,

Thank you for your reply,

It's working fine,

But I have one question :

I have added 5 variants in .txt file but I need to execute from 3rd variant to 5th variant.

Is there any way to execute without modifying the txt file.

I didn't get any solution, If you know help me out on this

Thanks in advance,

Vijay

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Vijay,

There are many posts on the same query.

You have the option to download variant in the TDC, so the file gets downloaded as .txt file

Since in notepad its not in readable format , you can add variants in the excel by opening the .txt file as excel

make changes and save. Finally you should have .txt file with updated variants. Now link this .txt file back to the TDC and link the TDC to Test Configuration and execute the Test Configuration.

The values should be picked from external file linked to the Test Configuration.

Thanks,

Aj

vijayjeethuri
Participant
0 Kudos

Hello Ajay,

Thank you for your response

I tried this method but it is not taking the .TXT file data, Its taking the default data which has given in test configuration.

Can you please send the document(If you have), That will be helpful.

Thanks and Regards,

Vijay Jeethuri