Locked Very Specific Combination of Parameters

  • Friday, June 01, 2012 8:38 AM
     
     

    Hello All,

    I have some specific requirements regarding paramater combination. For example say we have an action ToTest(param1, param2). param1 have values(1,2,3) and param2 have values(a,b,c). I just want that a combination that results in ToTest(1,a), ToTest(2,b), ToTest(3,c) and nothing else.

    I know i can achieve these cases by using:

                 Combination.Seeded(param1 == 1, param2 == "a");
                 Combination.Seeded(param1 == 2, param2 == "b");
                 Combination.Seeded(param1 == 3, param2 == "c");

    However, i also get other combinations of parameters. Then I tried using isolated along with seeded as:

                 Combination.Isolated(param1 == 1);
                 Combination.Isolated(param1 == 2);
                 Combination.Isolated(param1 == 3); which should logically solve my problem and should result in the expected combinations but the exploration ends in an error state saying "seed(.....) cannot be satisfied. Any clues how i can achieve the expected combinations?

    Thanks,

    Vivek

All Replies

  • Friday, June 01, 2012 12:06 PM
     
     Answered

    Hi Vivek,

    Condition.IsTrue(
    param1==1 & param2 == "a" |
    param1==2 & param2 == "b" |
    param1==3 & param2 == "c");

    could be a solution.

    Hope it helps.

    • Marked As Answer by Vivek.Vishal Friday, June 01, 2012 12:28 PM
    •  
  • Friday, June 01, 2012 12:30 PM
     
     

    Thanks bububa.....this is the solution...