Running gradle test tasks in Microsoft App-V5.1 virtualized environment

61 Views Asked by At

I'm very new to App-V, which is evaluated in my office. I have a Selenium test suite written in JUnit5 and can launch it as gradle test task using gradle-wrapper. My final goal is to run this on App-V5.1 virtualized environment, similar as this question.

As followed the link which was mentioned the answer, I tried to launch cmd.exe within the App-V environment, and it seeded works. Then, I tried to do this:

./gradlew --no-daemon clean test

Then the testClasses phase works perfectly, but in the test phase, I got an error like:

Could not write standard input into: Gradle Worker 1.
java.io.IOException: The pipe is being closed
   ...

(Sorry I couldn't show you the actual error log due to security reason, but it is similar to this question.)

May I wrong something? What's the right way to launch a gradle test in App-V env?

1

There are 1 best solutions below

2
SolidSid On

Have you tried launching cmd.exe from within the virtual bubble? I find the best way to do this is to create a shortcut to cmd.exe during sequencing and use this to troubleshoot.

If your process works within the bubble, the solution may be as simple as allowing Local Interaction. Have a read here about that.