mardi 7 juillet 2020

I am executing multiple robot suites using python file.For every suite file html report file is overriding the existing one

 import robot
    
    
    Filepath = "Local path"
    logFile = open('mylog.txt', 'a+')
    
    robot.run(Filepath+"Dashboard\\Dashboard_analyticinnovationstudio.robot", stdout=logFile)
    robot.run(Filepath+"Batchjob\\Batchjob.robot", stdout=logFile)
    robot.run(Filepath+"linejob\\linejob.robot", stdout=logFile)

From the above code every robot file i implemented as a separate suite file. So, in above execution i have 3 suite files. I configured this python file and am executing directly. In every suite file we have suite setup as login and tear down as end browser. When i executed the above python file it is generating only one html.report file, i.e with last robot file. For every execution it overriding the existing robot file. For me , i need one html.report file with above 3 test results and i should get log as well. Can someone help me on this.

Aucun commentaire:

Enregistrer un commentaire