Exemplo n.º 1
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        directory = test.dataDirectory()
        filename = "movie_01"

        # Remove old movie (if any).
        fullname = os.path.join(directory, filename + ".dax")
        if os.path.exists(fullname):
            os.remove(fullname)

        self.test_actions = [testActions.SetDirectory(directory = directory),
                             testActions.Record(filename = filename)]
Exemplo n.º 2
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        directory = test.dataDirectory()
        filenames = ["movie_01", "movie_02"]

        # Remove old movies (if any).
        for elt in filenames:
            fullname = os.path.join(directory, elt + ".dax")
            if os.path.exists(fullname):
                os.remove(fullname)
            
        self.test_actions = [testActions.SetDirectory(directory = directory),
                             testActions.LoadParameters(filename = test.halXmlFilePathAndName("feed_test.xml")),
                             testActions.SetParameters(p_name = 0),
                             testActions.Timer(timeout = 200),
                             testActions.Record(filename = filenames[0]),
                             testActions.Timer(timeout = 200),
                             testActions.LoadParameters(filename = os.path.join(test.dataDirectory(), filenames[0] + ".xml")),
                             testActions.SetParameters(p_name = 0),
                             testActions.Timer(timeout = 200),
                             testActions.Record(filename = filenames[1]),
                             testActions.Timer(timeout = 200)]
Exemplo n.º 3
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        directory = test.dataDirectory()
        filename = "movie_04"

        # Remove old movie (if any).
        fullname = os.path.join(directory, filename + ".dax")
        if os.path.exists(fullname):
            os.remove(fullname)
            os.remove(os.path.join(directory, filename + ".xml"))

        self.test_actions = [testActions.SetDirectory(directory = directory)]
        for i in range(10):
            self.test_actions.append(testActions.Record(filename = filename, length = 1))
Exemplo n.º 4
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        directory = test.dataDirectory()
        filename = "movie_01"

        # Remove old movie (if any).
        fullname = os.path.join(directory, filename + ".dax")
        if os.path.exists(fullname):
            os.remove(fullname)
            os.remove(os.path.join(directory, filename + ".xml"))

        self.test_actions = [testActions.SetDirectory(directory = directory),
                             testActions.ShowGUIControl(control_name = "focus lock"),
                             testActions.Timer(100),
                             testActions.Record(filename = filename, length = 10)]
Exemplo n.º 5
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        directory = test.dataDirectory()
        filename = "movie_03"

        # Remove old movie (if any).
        fullname = os.path.join(directory, filename + ".dax")
        if os.path.exists(fullname):
            os.remove(fullname)
            os.remove(os.path.join(directory, filename + ".xml"))
            
        self.test_actions = [testActions.SetDirectory(directory = directory),
                             testActions.Record(filename = filename),
                             testActions.LoadParameters(os.path.join(directory, "movie_03.xml")),
                             testActions.SetParameters(p_name = 0),
                             testActions.Timer(timeout = 500)]
Exemplo n.º 6
0
    def __init__(self, **kwds):
        super().__init__(**kwds)

        directory = test.dataDirectory()
        filename = "movie_02"

        # Remove old movie (if any).
        fullname = os.path.join(directory, filename + ".dax")
        if os.path.exists(fullname):
            os.remove(fullname)
            
        self.test_actions = [testActions.SetDirectory(directory = directory),
                             testActions.LoadParameters(filename = test.halXmlFilePathAndName("feed_examples.xml")),
                             testActions.SetParameters(p_name = 0),
                             testActions.Timer(timeout = 1000),
                             testActions.Record(filename = filename),
                             testActions.Timer(timeout = 2000)]