Xrun strange situation seem do not work when rpa will be closed after

@admin @Plankton @ulrich

I have a macro to run a batch file to run again ui vision after completed test suite (to do a loop of test suite).

I maked this test on RDP machine to try a loop test suite but latest macro xrun a batch file to run test suite again and close browser but do not work xrun.

I run a test suite, after the last macro use command xrun to run a batch file to run again RPA and close browser, I wait to have batch file opened to run RPA again.

But if i run batch file with xrun using rpa manually it start and working well.

If i run xrun and after RPA will be closed do not work and batch file do not start.

Where I wrong ?

Any help please ?

Macro Code

{
“Name”: “end”,
“CreationDate”: “2020-4-1”,
“Commands”: [
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorIgnore”
},
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “XRun”,
“Target”: “C:\Users\XXX\Desktop\run-firefox-portable-rpa.bat”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Test Suite Completed, Closing Browser And Start Test Suite Again”,
“Value”: “#shownotification
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_W}”,
“Value”: “”
}
]
}

The batch file is a simple batch file to run a test suite that working when you run it manually.

Browser used firefox

Have you tried XRun | cmd | “C:\Users\XXX\Desktop\run-firefox-portable-rpa.bat”

What is the content of run-firefox-portable-rpa.bat?

You can see the bat file in RDP machine.

I tried to create an infinite loop with RPA that esexute a test suite, latest macro, run batch file to restart ui vision (I added 30 seconds of delay to give time to firefox to closing all process) and close RPA.

The batch file is the same that start RPA test suite, manually working.

I tried to execute single command with RPA and xrun run the same batch file and open batch file and after 30 seconds restart ui vision but seem this is not possible in automatic.

Seem xrun when RPA will be closed (KEY_CTRL+KEY_W) do not execute batch file.

It’s possibile that the closure of RPA with Xtype and (KEY_CTRL+KEY_W) block xrun command ?

Xrun will be executed before to close RPA this is normal i added to paese 5000 to give time to execute xrun.

Today i make other test i want to know this situation,

It’s possibile that the closure of RPA with Xtype and (KEY_CTRL+KEY_W) block xrun command ?

Hmm… no, that should work. Ctrl+W only closes the main browser, the RPA IDE remains open and XRun works.

I tried to execute single command with RPA and xrun run the same batch file and open batch file and after 30 seconds restart ui vision but seem this is not possible in automatic.

So you use the batch file to start UI.Vision, run a test suite, and in the last macro of the test suite you close the browser, run XRUN and run everything again - in an endless loop?

This should work. But why are you doing it this way and not use e. g. Powershell or VBS to do the loop?

:point_right:In the RDP session, I click on the batch file but nothing happened at all. This the setup complete already?

Today i make others test i think Xrun activate the command at the end of macro, i continue to try and inform you about result, thanks

After some test i can not run a batch file with xrun command in RDP machine.

Macro code:

{
“Name”: “4_xrun”,
“CreationDate”: “2020-4-3”,
“Commands”: [
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorIgnore”
},
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “XRun”,
“Target”: “C:\Users\dev1\Desktop\test.bat”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”
}
]
}

Batch file

echo "Hello"
Pause

Path batch file:
C:\Users\dev1\Desktop\test.bat

Xrun path is escaped (in forum show not escaped), i copy and paste from ui vision windows.

If I wrong help me please, if there is a bug investigate please.

I’m using firefox portable in RDP machine bat seem Xrun do not load batch file.

Tried with firefox installed and firefox portable do not work do not load batch file

Some machines require cmd.exe

Seem Xrun in RPA with batch file do not work with version 5.5.7

I tried in my computer and i have the same result, xrun do not run batch file