Exemplo n.º 1
0
    def RUN(self, List_G):
        for id in range(0, Len):
            gth = len(List_G[id])  #how many caseList
            oops_L1 = int(
                List_G[id][0][2])  #at this corner, loops for caseList
            module_name = PY[id][0].split('.')[0]
            for LP2 in range(0,
                             self.oops_L2):  #repeat time is LP2 from default
                if List_G[id][0][1] == True:
                    Time = datetime.datetime.now()
                    CornerX = Cname[id]
                    Lth = oops_L1
                    print "module names is: %s" % (module_name)
                    self.runAcase(module_name, id + 1, loopName=1)

            for LP1 in range(0, oops_L1):  #repeat time is LP1 from spinbox
                Time = datetime.datetime.now()
                Lpth = LP1 + 1
                Cnth = Cname[id]
                pt.LoopBegin(Time, Lpth, Cnth)
                for dex in range(1, gth):
                    module_name = PY[id][dex].split('.')[0]
                    if List_G[id][dex][1] == True:
                        print "module names is: %s" % (module_name)
                        print "executing item name: %s"\
                              %(Corner[id][dex])
                        subcaseLoop = int(List_G[id][dex][2])
                        for subid in range(0, subcaseLoop):
                            print "subid is %d" % (subid)
                            self.runAcase(module_name,
                                          id + 1,
                                          loopName=LP1 + 1)
                Lpth = LP1 + 1
                pt.LoopEnd(Lpth, Cnth)
Exemplo n.º 2
0
    def runAcorner(self, cornerPY, cornerName):
        cLen = len(cornerPY)
        lcycle = int(dic['Std_Loop_Numb'])
        print cornerPY
        self.runAcase(cornerPY[0], cornerName, loopName=1)

        if cLen > 1:
            for id in range(0, lcycle):
                Time = datetime.datetime.now()
                Lpth = id + 1
                Cnth = cornerName
                pt.LoopBegin(Time, Lpth, Cnth)
                for idx in range(1, cLen):
                    self.runAcase(cornerPY[idx], Cnth, loopName=Lpth)
                pt.LoopEnd(Lpth, Cnth)