xframium / xframium-java

xFramium - Rapid unified test case development
http://www.xframium.org
GNU General Public License v3.0
12 stars 18 forks source link

String CONCAT - Issue appending to original value #68

Closed shivajibr closed 7 years ago

shivajibr commented 7 years ago

case CONCAT: StringBuilder buff = new StringBuilder( originalValue ); for( int i = 0; i < paramCount; ++i ) { buff.append( getParameterValue( getParameterList().get( i ), contextMap, dataMap ) + "" ); } newValue = buff.toString(); break;

Here in the above code the for loop should start from i=1. With i=0, original value passed as a parameter will also get appended again.

allengeary commented 7 years ago

Are you referring to STRING or STRING2. For STRING2 that is the expected behavior. There is no need for an "original value" as it will CONCAT all parameters together.