from tests.fromMaya import FromMaya try: # Create new TestInfo object testInfo = testInfo.TestInfo() # Create Launch and ProjectBrowser objects to start a clean version projectBrowser = ProjectBrowser(testInfo) launch = Launch(testInfo, projectBrowser) # Create test objects here (e.g. fromMaya = FromMaya(testInfo)) fromMaya = FromMaya(testInfo) ##################################################### # TODO: Write tests to execute here. fromMaya.addStills() fromMaya.replaceStill() fromMaya.addPlayblast() fromMaya.replacePlayblast() fromMaya.addSequencerShots() fromMaya.replaceSequencerShot() fromMaya.addSequencer() fromMaya.publishSequencer() ##################################################### except Exception: var = traceback.format_exc() sikuliUtils.log('mayaTest: ' + str(var), 'error') # Kill Flix, close any open window related to the test, zip the sequence sikuliUtils.cleanup(testInfo, False)
from tests.fromMaya import FromMaya try: # Create new TestInfo object testInfo = testInfo.TestInfo() # Create Launch and ProjectBrowser objects to start a clean version projectBrowser = ProjectBrowser(testInfo) launch = Launch(testInfo, projectBrowser) # Create test objects here (e.g. fromMaya = FromMaya(testInfo)) fromMaya = FromMaya(testInfo) ##################################################### # TODO: Write tests to execute here. fromMaya.addStills("cylinder.mb", [1, 8, 15, 4, 30, 38, 45, 42]) fromMaya.replaceStill("cylinder.mb", 40) fromMaya.addPlayblast("cylinder.mb") fromMaya.replacePlayblast("cylinder.mb") fromMaya.addSequencerShots("cylinder.mb", 5) fromMaya.replaceSequencerShot("cylinder.mb", 4) fromMaya.addSequencer("cylinder.mb") fromMaya.publishSequencer("cylinder.mb") ##################################################### except Exception: var = traceback.format_exc() sikuliUtils.log('fromMayaCylinder: ' + str(var), 'error') # Kill Flix, close any open window related to the test, zip the sequence sikuliUtils.cleanup(testInfo, False)