3

I have one

script.bat

and i want to excute this script it in robotframework .

I'm also try with this but nothing work for me .

Run     ${CURDIR}/script/script.bat

Anyone could help me please ?

2
  • 2
    Can you explain what error or message you're seeing? Commented Jun 19, 2018 at 11:35
  • @A.Koostra , It doesn't show any erorr . It's PASS , but nothing execute . Now i'm solve this problem by create custom code in python . thanks Commented Jun 20, 2018 at 2:00

1 Answer 1

2

Use Process Library to run bat file

Then your snippet wil be like

*** Settings ***
Library    Process

*** Test Case ***
Launch Bat File
    Run Process       ${CURDIR}/script/script.bat

I tested above snippet using sample bat file(script.bat) which launch chrome.

start chrome https://www.google.co.in/

Even i tried with OperatingSystem library and it's working fine. Following is the snippet.

*** Settings ***
Library    OperatingSystem

*** Test Case ***
Lauch Bat File
    Run       ${CURDIR}/script/script.bat
Sign up to request clarification or add additional context in comments.

2 Comments

I am already do this also , but it's wont work . I'm solve this problem by create custom my own library now . anyway thanks you .
Yes, New chrome is launched. Try above example and don't forget to include library in settings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.