This is a migrated thread and some comments may be shown as answers.

Array/Dictionary as Variable

4 Answers 11 Views
Feature Wishlist
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 12 Feb 2019, 04:14 PM
Array/Dictionary as Variable.  So if we need to run a step say 10 times, it will records the 10 outputs in the array.  Right now we’d have to hardcode variable names.

4 Answers, 1 is accepted

Sort by
0
Plamen Mitrev
Telerik team
answered on 14 Feb 2019, 08:55 AM
Hello Chris,

As I want to understand more about the exact scenario, can you go into details on the following topics?
  • Do you have, for example, 10 times the same step in one project, or you want to run the project 10 times?
  • Please share more details about the test scenario, which leads to this feature request. Can you provide a sample project to illustrate it? This will be really helpful in our further discussions.

Thank you for sharing this feedback with us.

Regards, Plamen Mitrev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Chris
Top achievements
Rank 1
answered on 14 Feb 2019, 02:34 PM

A simple example would be, User 1 submits 10 API requests to create 10 records.  I'd need to create variables rec1, rec2, rec3 … to store the results (doc ID) for example.

Later in the test, I call an API to remove duplicate records.  I now need to create 10 steps using the 10 variables to check each one if it was removed.  

Yes, this could be done with a coded step, but I don't want to have to.  I would want to be able to create a loop and just look at var[I] in the steps.

0
Plamen Mitrev
Telerik team
answered on 19 Feb 2019, 03:08 PM
Hello Chris,

Our engineering team started to investigate the possibilities and required effort for your request. Please allow us one more day to discuss this internally and share our finding and future plans with you tomorrow.

Thank you for understanding.

Regards,
Plamen Mitrev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Plamen Mitrev
Telerik team
answered on 20 Feb 2019, 02:15 PM
Hello Chris,

We think that it will be better to divide this feature request into 2 separate ones. The reason for this is that, each of the request listed below provides unique benefit on its own and at the same time should improve the scenario, that you are trying to achieve.

The first feature is to be able to create a loop from the UI for one or more test steps with specific conditions. At this point this can be achieved with a GoTo step with specific condition and a coded step.

The second feature will allow you to fill JSON collection directly from the UI and thus elimination the need for a coded step for this action. This should help you access an given records (for example var[i]). Although, you can currently use JsonPath expressions to extract those records from previously created JSON collection, the problem is that you need a coded step to create that JSON value and populate the records.

Please check my suggestions and if you agree with them, let me know and I will create 2 separate feature request on our public portal on your behalf.

Thank you once again.

Regards,
Plamen Mitrev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Feature Wishlist
Asked by
Chris
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Chris
Top achievements
Rank 1
Share this question
or