Exemplo n.º 1
0
 def test(self):
     chk_equal(self.class_param_override, "Overridden", description="Checking that parameter is overridden")
     chk_equal(self.class_param, "Class Param")
     chk_log_value("Frequency {}".format(self.frequency), description="Just outputting the frequency")
     chk_log_value("Time {}".format(self.time))
     user_info("This won't be in the report")
     chk_passes("This will be in the report")
Exemplo n.º 2
0
def setup_config():
    """
     Configuration that is initialised on first import of fixate
    :return:
    """
    global CONFIG_LOADED

    if not CONFIG_LOADED:
        try:
            fixate.config.RESOURCES["VISA_RESOURCE_MANAGER"] = visa.ResourceManager()
        except:
            fixate.config.RESOURCES["VISA_RESOURCE_MANAGER"] = None
            user_info("Warning no PyVISA install found")

        fixate.config.RESOURCES["SEQUENCER"] = Sequencer()
        load_local_config()
        CONFIG_LOADED = True
Exemplo n.º 3
0
    def test(self):
        user_info(self.pps.identify(as_string=True))

        user_info(self.pps.baud_rate)
        self.pps.remote = True
        self.pps.remote = False
        self.pps.remote = True
        self.pps.voltage = 12
        self.pps.output_ch1 = True
        time.sleep(1)
        self.pps.output_ch1 = False
        self.pps.voltage = 5.5
        self.pps.output_ch1 = True
        time.sleep(1)
        self.pps.output_ch1 = False
        self.pps.voltage = 24
        self.pps.output_ch1 = True
        time.sleep(1)
        self.pps.output_ch1 = False
        self.pps.voltage_max = 56
        self.pps.current_max = 0.5
        self.pps.output_ch1 = True
        resp = self.pps.read()
        user_info(resp)
        chk_passes("All Tests completed")
Exemplo n.º 4
0
 def setup(self):
     user_info("Tests can have setup")
Exemplo n.º 5
0
 def exit(self):
     user_info("Leaving the test list")
Exemplo n.º 6
0
 def enter(self):
     user_info("Entering the test list")
Exemplo n.º 7
0
 def test(self):
     user_info("Fingers crossed, this will pass")
     chk_true(True, "It is True!")
Exemplo n.º 8
0
 def teardown(self):
     user_info("Tests can have teardown")
Exemplo n.º 9
0
 def tear_down(self):
     user_info("Foo TearDown")
Exemplo n.º 10
0
 def set_up(self):
     user_info("Foo Setup")
Exemplo n.º 11
0
 def tear_down(self):
     user_info("Tearing down this function")
Exemplo n.º 12
0
 def test(self):
     user_info("Test")
Exemplo n.º 13
0
 def test(self):
     user_info("Line 1")
     user_info("Line 2")
     user_info("Line 3")
     user_info("Line 4")
     user_ok("Line 5")
Exemplo n.º 14
0
 def test(self):
     user_info("Fingers crossed, this will pass")
     user_image("base_test.jpg")
     user_ok("Press OK to continue")
     chk_true(True, "It is True!")
     user_image_clear()