I am using Process Library in Robot Framework to spawn a process(a bash shell is spawned to execute the required process) to prepare runtime environment for test cases. But when I use Sleep keyword in my robot files, the spawned process is also become paused. How can I avoid this issue?
Found the cause of this problem. It is not related with the process.
You can try keyword Wait For Process https://robotframework.org/robotframework/latest/libraries/Process.html#Wait%20For%20Process
Related
My scenario is the following:
I am running a jetty server from within sbt. While it is running, without stopping it, I'd also like to run another command.
Is this possible without running two instances of sbt?
You could try using the new (as of sbt 1) bgRun command when running jetty. See https://github.com/sbt/sbt/pull/2936
Try the all command, whose argument commands will be run in parallel.
So something like all jettyStart otherCommand.
I'm trying to execute a group of tests. I see at nightwatch documentation about group and tasks and I'm using tasks to run specifics tests. The problem is that nightwatch recognizes the test but does not execute it.
nightwatch return:
Starting selenium server in parallel mode... started - PID: 1404
If you want to upload Screenshots to S3
please set your AWS Environment Variables (see readme).
Started child process for: adquirentes\antecipacao
>> adquirentes\antecipacao finished.
As you can see, the test was started but not executed. How can I fix it?
I'm currently running some queries to a database and getting back some big files as a result. I have encountered the common problem of Windows not freeing the memory, even though I 'rm()' everything and (edit) calling 'gc()'. One workaround i have found is using .rs.restartR() in Rstudio.
This though requires me to constantly watch my script, in order to continue it after the session restart. Is it possible to automate it? If not what other methods do people use to overcome this problem?
You could break the code into 2 files and write a batch file (.bat) that runs the first file through .rs.restartR() and then the remainder of the code in the next file.
You could also skip the .bat and just schedule both .R scripts to run in Task Scheduler.
Also, please see my comment regarding garbage collection (gc()).
I am trying to generate Eclipse and IDEA projects for a play project using activator. When I tried doing this, it does a little, but then it hangs at:
Waiting for lock on C:\Users\James\.ivy2\.sbt.ivy.lock to be available...
At first I thought my running session of Intellij IDEA may be conflicting, I killed IDEA and the issue persisted. I closed activator, deleted the lock file, and restarted activator, but then it recreated the lock file and gave me the same issue. This is the full log I have been getting.
[info] Loading project definition from C:\Users\James\play-java\project
[info] Set current project to play-java (in build file:/C:/Users/James/play-java/)
[info] Applying State transformations com.typesafe.sbtrc.SetupSbtChild from C:/Users/James/.sbt/boot/scala-2.10.2/com.typesafe.sbtrc/sbt-rc-probe-0-13/1.0-1a8f7afd5ba98b45834ff53dd349130c3ade22f1/sbt-rc-probe-0-13-1.0-1a8f7afd5ba98b45834ff53dd349130c3ade22f1.jar;C:/Users/James/.sbt/boot/scala-2.10.2/com.typesafe.sbtrc/sbt-rc-probe-0-13/1.0-1a8f7afd5ba98b45834ff53dd349130c3ade22f1/sbt-rc-props-1.0-1a8f7afd5ba98b45834ff53dd349130c3ade22f1.jar
[info] Updating {file:/C:/Users/James/play-java/}root...
Waiting for lock on C:\Users\James\.ivy2\.sbt.ivy.lock to be available...
How can I fix the lockfile issue?
The .sbt.ivy.lock file is used to synchronize access to your local ivy2 repository between several processes so they cannot modify the directory simultaneously. Usually the situation that you described happens when you have an IDE and Activator/sbt terminal running at the same time.
Even though you killed the Idea Process there could be another process spawned which was causing the lock so next time make sure that you kill all Java processes. However, the best solution for this issue is to avoid locking one process with another. So run only one process which uses the ivy2 repository at the same time.
If nothing works, the last step is to kill the .lock file.
I faced a similar issue, I was also getting the same error
Waiting for lock on C:\Users\ajain9\.ivy2\.sbt.ivy.lock to be available...
Then finally the issue was that there was another sbt process running on my system, and because of that the .sbt.ivy.lock file was not being available. As explained well by Daniel, lock file is used for synchronization purpose.
Once the previous process ended,I did not face this error again.
mac users, just do ps -ef | grep -i sbt, and kill the process
I've made an appliaction in java which is performing some operations on the database.
Then I wrapped jar using launch4j (making exe) and it's working fine when I double-click it.
But if I put it as a part of SSIS process (in Execute Process Task) it doesn't make anything. SSIS is marking it as Executed just miliseconds after beginning while it should last at least 10 seconds.
I have already been using Execute Process Task for unzipping files with 7-zip and it worked fine.
How should I run java application as a part of SSIS process?
EDIT: Now I think that my app is executing but ssis doesn't wait for it to ends but continues process while java app is executing :(
Any hints will be appreciated
Solved.
The problem was when I was making exe file I picked 'GUI application' option instead of 'Console'
Now it's working fine.