Highlighted
Absent Member.
Absent Member.
180 views

How to suppress Command Line Out in Vugen using Java Protocol

I am trying to run a command line program in Vugen using the java protocol(Java Record and Play).

Although, I have logging disabled, this still writes some output to the system.out on the console and create a stdOutErr where everything is logged that would have otherwise been written to the console in a dos cmd program. 

This seems to cause huge stdouterr files when run for mutiple users.. I am looking for a way to disable or stop anything being written to the stdouterr file. Something similar to an echo off to suppress output. How can this be acheived. Below is the LR script using Java protcol. 

import lrapi.lr;
import com.xx.aa.bb.LoadDriver;

public class Actions {

public int init() throws Throwable {
          return 0;
    }
    
    public int action() throws Throwable {
      
        GFLoadDriver.main("gfload-host-driver", "2", "2", "2", "30000", "serverhostname", "8383" , "timestamp");
           
        return 0;
    }

    public int end() throws Throwable {
        return 0;
    }
     
}

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.