Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to figure out an option that could help me to run .robot files using pabot command via python. I have been running the robot command via python below but now wanted to run via pabot command via python.

My existing code: This works fine.

import robot
robot.run(....)

Do we have similar API exists for Pabot too?

I did try in this way too but apparently not getting any results including errors after running.

import os

class Pabot():

    def run_pabot(self, folderOrSuiteName, tags=None):
        os.system("pabot --testlevelsplit -d " + folderOrSuiteName + " --i " + tags + " " + folderOrSuiteName + "")

run = Pabot()
run.run_pabot("foo/boo/test.robot", "TC1")

Your guidance would be highly appreciated!!!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
551 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share
...