Question

test data management in tosca


Badge

Hey,

i want to add multiple lines from TDS to a single test case.how to do that.

is it possible to get data from TDS to test sheet in design section.


11 replies

Userlevel 3
Badge +2

Yes you can used multiple lines from one Table in one test case. You need to read each line separately and assign different alias names so you can access them. Read TestData - Find & provide item.

Badge

Hi,

thanks for your reply but i dont want to use data from tds into testcases,i want to use test data in templatest through test sheet in design section.

Userlevel 3
Badge +1

Hi,

thanks for your reply but i dont want to use data from tds into testcases,i want to use test data in templatest through test sheet in design section.

In your original post you said you wanted to “add multiple lines from TDS to a single test case”. That’s why you got an answer to that question.

As for directly linking/copying data between TDS and a test sheet, no I don’t think that’s possible.

I think you will need to explain in more detail exactly what the underlying problem is that you’re trying to solve / what you’re trying to achieve by doing this. Your explanation would hopefully help us to understand exactly why you want to combine the use of TDS and test sheet data, since in the majority of cases those 2 things would be used independently for different purposes. It’s possible that you’ve headed down a path towards the wrong kind of solution, and we might need to take a few steps back to help you solve it in a completely different way. Or you might have a valid use case for mixing TDS and test sheets, and we can help provide some more targeted advice.

Userlevel 3
Badge +2

Or you might have a valid use case for mixing TDS and test sheets, and we can help provide some more targeted advice.

We have started doing it as importing Test-Data-Management from a CSV file is much easier then importing Test-Case-Design from anything. It’s not that difficult. Just use `{XL[Instance]}` as search value. But that is the other way: More TDM and less TCD.

Badge

We basically want to create templates so that we can convert it into testcases, can we get data from tds into template 

Userlevel 3
Badge +2

Hi,

thanks for your reply but i dont want to use data from tds into testcases,i want to use test data in templatest through test sheet in design section.

You could export the Test-Data-Management table as CSV. Then you change the CSV so it’s format is suitable for import into the Test-Case-Design design. Then use import table from clipboard to import the data.

Note that you need to get it right first time as TCD can only be imported once non destructively. If you need to import a 2nd time you destroy your instances and execution lists.

As such I’m with @brendon.russell: It’s possible that you’ve headed down a path towards the wrong kind of solution.

Userlevel 3
Badge +2

We basically want to create templates so that we can convert it into testcases, can we get data from tds into template 

Now I’m sure you are heading towards the wrong kind of solution. It’s not either or. You can use Test-Data-Management and Test-Case-Design in the same test and that gives you the more option to design your test and manage your test data.

Badge

Thank you every one for your replies.i have 1 more query.we want to add multilines from tdm to same test case.please give me a proper way to do that.eg-i need to add items in cart with same item name but with different suppliers and we dont know how many such items are there in tdm.so basically want to add all the item with same id but different suppliers .

Badge

And every value in cart have different billing account so need to add billing for each value in cart.

Userlevel 3
Badge +2

Thank you every one for your replies.i have 1 more query.we want to add multilines from tdm to same test case.please give me a proper way to do that.eg-i need to add items in cart with same item name but with different suppliers and we dont know how many such items are there in tdm.so basically want to add all the item with same id but different suppliers .

You could use the position attribute for TestData - Find & provide item:

And you could keep the row-count in the Test-Case-Design. You might benefit from Tricentis Tosca Deep Dive − Structuring your test cases and test data (TDS1)

Badge

Could anyone provide me exact syntex for below scenario because m stucking somewhere.

we have n(cant count) number or lines with same id but different suppliers and different values in tds.

which we need to add in cart with all that values.

for every value in cart we have a seperate billing option for which we are using expicit name but dnt know how to use it for n no of billings.eg- how to tell tosca to add billing for 2nd item then for 3rd item and so on.

 

thanks in advance

Reply