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!!!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…