concatenate broken?

Hi,

I depend on the concatenate function, but it seems to be broken. Only the first of the string of the list is recorded. For example, using your site’s example, you can see that this doesn’t returned the expected value:

x = WebUI.concatenate((([‘Katalon’, ‘Automation Tool’]) as String))

println(x);

That worked! Thanks for the fast response!

Hi there,

We will fix that. However the same keyword with Failure Handling option will work, e.g:

WebUI.concatenate(['Katalon', 'Automation Tool'] as String[], FailureHandling.STOP_ON_FAILURE)

Can you add that option to your script?

This worked for me using variables. For example, with String y = ‘Hello’ and String z = ‘World’, I was able to do x = WebUI.concatenate([y, z] as String[], FailureHandling.STOP_ON_FAILURE) to produce HelloWorld

hi,

why have to use concatenate method to add two or more strings
just use:
String one = "one";
String two = "two";
String three = one+two;
println three --> onetwo