Beispiel #1
0
    def connect(self,**connectargs):
        for key in connectargs:
            vars(self)[key] = connectargs[key]
        
        self.name = self.options['name']
        connect_result = super(API,self).connect()
        self.logFileName = main.logdir+"/"+self.name+".session"
        config_default["log_file"] = self.logFileName
        test_set_init(config_default)
        __builtin__.basic_logger = vars(main)[self.name+'log']
        __builtin__.basic_logger.info("Calling my test setup")
        self.setUp(basic_logger)

        (self.fv, self.sv, sv_ret, ctl_ret, sw_ret) = testutils.setUpTestEnv(self, fv_cmd=basic_fv_cmd)
        
        self.chkSetUpCondition(self.fv, sv_ret, ctl_ret, sw_ret)
        return main.TRUE
Beispiel #2
0
    def connect(self, **connectargs):
        for key in connectargs:
            vars(self)[key] = connectargs[key]

        self.name = self.options["name"]
        connect_result = super(API, self).connect()
        self.logFileName = main.logdir + "/" + self.name + ".session"
        config_default["log_file"] = self.logFileName
        test_set_init(config_default)
        __builtin__.basic_logger = vars(main)[self.name + "log"]
        __builtin__.basic_logger.info("Calling my test setup")
        self.setUp(basic_logger)

        (self.fv, self.sv, sv_ret, ctl_ret, sw_ret) = testutils.setUpTestEnv(self, fv_cmd=basic_fv_cmd)

        self.chkSetUpCondition(self.fv, sv_ret, ctl_ret, sw_ret)
        return main.TRUE