Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

robotframework - Pabot via Python Feasible?

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!!!


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

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...