Skip to main content
Question

Do we have a method instead of writing contains in parameters of Tester and how can insert excel file inside Parameter as Input


soly
Contributor
Forum|alt.badge.img+3
  • Contributor

I am confused a little bit about Tester

So I have two questions about tester :

At first :i have attribute and I want to write for the same attribute around 15 field ,if contains then pass .

As example same attribute ,if contains v ,passed .

 

So I have to write 15 times for same attribute , and it is too much ,is there easy way to give tester once a time to pass .if conditions occur .

 

Second Question :

I have around 100 field ,in Attribute named building ,I want From tester to check if Name includes as example sam , then pass with another attributes but I does not want to change the name of building every time from the parameter inside tester , I have too many names for building and I want to do excel file out my workspace but as input file inside my code and I change everytime in excel file ,the name of building that I want to pass with another attributes then I got my result only include this building name and another Attributes.

 

Thanks in advance

 

 

6 replies

Forum|alt.badge.img
  • February 14, 2020

For the first question, you could use a ListBuilder that combines the 15 attributes into a list and then a ListSearcher to find the value in any of the 15 listed attributes.


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 14, 2020
danullen wrote:

For the first question, you could use a ListBuilder that combines the 15 attributes into a list and then a ListSearcher to find the value in any of the 15 listed attributes.

Thanks for reply . i will try ur method if u can guide me also for the second question ,i will be thankful .


Forum|alt.badge.img
  • February 14, 2020
soly wrote:

Thanks for reply . i will try ur method if u can guide me also for the second question ,i will be thankful .

I'm afraid the second question needs a bit more clarification and some examples. :-)


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 14, 2020
danullen wrote:

I'm afraid the second question needs a bit more clarification and some examples. :-)

Could’ I ask ,if tester is the transformer that I should use in this case for the second question ,or Which transformer should I use?


Forum|alt.badge.img+2
  • February 14, 2020

@soly Does StringSearcher with a regex using OR (|) work for you?

 


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 15, 2020
markatsafe wrote:

@soly Does StringSearcher with a regex using OR (|) work for you?

 

it works great.thanks alot


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings