Forum Discussion

Josh_147's avatar
Josh_147
Contributor
3 years ago

How to modularize execution plan in TestComplete?

Hi all,

I'm trying to simplify the execution plan in TestComplete.
For example:

- I have a customer list which will keep adding new customer.

- I want to transfer different amount of money to different customers.

 

Based on the above settings, I want to transfer $100, $200, and $400 for Customer A, C, and D. The sequence will be:

1. Run for Money Group $100 for Customer A then C then D.

2. Run for Money Group $200 for Customer A then C then D.

3. No run for Money Group $300 for all the customers (A, B, C, D).

4. Run for Money Group $400 for Customer A then C then D.

 

So, the issue is, it could be troublesome when the number of customer keep increasing and I have to manually add the customer into each of the Money Group.

 

Can the execution plan be simplified similar to the settings illustrated as below?

 

The idea is to separate out the customers as a new group (named as Customers) to allow the Money Group called it as some kind of function.

Also, it can be enable/disable the Money Group and Customer Group individually.

 

Thanks.

 

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Test Items cannot be enabled or disabled during runtime.

    I would consider some configuration file and use it as an input for single parameterized function.

    For example:

    {

    "group" : [

    "$100" : [

    "Customers" : [

    "CustomerA",

    "CustomerB"

    ]

    ...

    ]

    ...

    ]

    }

     

    Alternatively, you may create two arrays for money amounts and customers and then calculate their permutations (or random selections) and use obtained customer-amount pairs as input parameters for the above function.