cancel
Showing results for 
Search instead for 
Did you mean: 

how to select multiple values from one excel cell

Highlighted
Regular Contributor

how to select multiple values from one excel cell

I have a scenarios as a prereq.. i need to run function1,function2  then Testcase 1 

 

Functions are storing in Events, which trigerring from excel 

 

 

Excel - 

Single Cell -   function1,function2

 

on the even i provided 

 

if prereq == (function1)

{

run function1

}

 

and 

 

if prereq == (function2)

 

{

run function2

}

 

run testcase1 

 

 

can any one help to write a good groovy script here for this scenario 

 

 

 

2 REPLIES 2
Highlighted
Community Hero

Re: how to select multiple values from one excel cell

What is the use case?
How the test case is designed?
How is data source defined?


Regards,
Rao.
Highlighted
Super Contributor

Re: how to select multiple values from one excel cell

You could split the prereq by comma, or use contains if it is a very simple case.

 

if (prereq.contains('function1'))

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors