AnsweredAssumed Answered

How to print output of java code in Execute Script JSR-223

Question asked by pranaygupta on Jan 2, 2019
Latest reply on Jan 12, 2019 by DannySaro

Hi All,

 

I have a Java code written in JSR-223 step. The output of java code is stored in variable of String type.

 

Expected Output of JSR-223: abcdef [IDE gives correct output]

Actual Output: Result is class trail [Not working]

 

ISSUE: What should I do , so that java code output can store actual result. Kindly assist.

 

Java code:

public class trial {
   public static void main(String[] args) {
   String headerOne = "abc";
   String headerTwo = "def";

   String finalOutput = headerOne + headerTwo;

   System.out.println(finalOutput);
   }
}

 

abrsh01 Rick.Brown deoma03 Kevin_Bowen Josh_Hendrick

Outcomes