Beispiel #1
0
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))
    fromPs = FromPS(testInfo)

    #####################################################
    # TODO: Write tests to execute here.

    fromPs.psCurrentImage()
    fromPs.psReplaceImage()
    fromPs.psEachFrame()
    fromPs.psEachLayer()
    # Each Layer + BG
    fromPs.psEachLayer(BG=1)
    # Each Layer + BG/FG
    fromPs.psEachLayer(BG=1, FG=1)
    fromPs.psEachLayerComp()
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('psTest: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)
from tests.toEditorial import ToEditorial

try:
    # Construct new TestInfo object
    testInfo = testInfo.TestInfo()
    # Create Launch and ProjectBrowser objects to start a clean version
    projectBrowser = ProjectBrowser(testInfo)
    launch = Launch(testInfo, projectBrowser)
    # Construct test objects here (e.g. fromMaya = FromMaya(testInfo))
    fromPS = FromPS(testInfo)
    toEditorial = ToEditorial(testInfo, launch)

    #####################################################
    # TODO: Write tests to execute here.

    fromPS.psCurrentImage()
    fromPS.psEachLayerComp()
    fromPS.psEachLayer()
    fromPS.psEachFrame()

    toEditorial.toAvid("Publishing PS stuff to Avid.")
    toEditorial.toPremiere("Publishing PS stuff to Premiere.")
    #####################################################

except Exception:
    var = traceback.format_exc()
    sikuliUtils.log('psToEditorial: ' + str(var), 'error')

# Kill Flix, close any open window related to the test, zip the sequence
sikuliUtils.cleanup(testInfo, False)