Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Writing console output to a file

I am using the command
virtualizecli -startServer >virtualizelogs.txt to write the logs to a file. But after executing the call to the server/virtual asset, I don't see that file is getting updated with the Application.showMessage statements.

Tagged:

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,306 ✭✭✭
    edited March 2020

    For Application.showMessage() statements, you probably also need to pass the -appconsole argument. This works for soatestcli but I suspect it might work for virtualizecli as well.

    You might also consider adding 2>&1 to the end of your command so you get messages printed to error stream in addition to normal output stream.

  • srikanthmummadi
    srikanthmummadi Posts: 39

    Thank you