for r in range(1): #print ('====='+str(r)+'======') #get there ui.navauth('ProcessAnalytics') ui.nav('ProcessAnalytics') pa.selectprocess(proc) pa.selectrange('4 Weeks') ##nav through the process pa.selectvolumes({'level':'proc','range':'curr','status':'All'}) pa.magglasscheck() pid = pa.piidlink() bc.focus() bc.validatepi(pid) #bc.validateerrors({'Proc':'3','Step':'0','Stage':'3','Rule':'3'}) bc.close() #pa.selectvolumes({'level':'proc','range':'curr','status':'All'}) #pid = pa.piidlink('5') #bc.focus() #bc.validatepi(pid) #bc.validateerrors({'Proc':'0','Step':'1','Stage':'3','Rule':'1'}) #bc.close() #nav through magglass pa.selectvolumes({'level':'proc','range':'curr','status':'All'}) pid = pa.piidlink('0', False) #make sure re-read latest inst, no click pi = pa.magglass() bc.focus() bc.validatepi(pid)
p.descriptionlinkname(rules[r]) except: g.tc('', 'fail', 'unable to see/click rule link: ' + rules[r]) continue pid, cnt = pd.piidlink() if pid == None: continue #no link seen g.tc('validate contrib event inst count (OBE-9469)') if cnt > 3: g.tc('', 'fail', 'expected/actual <4/' + str(cnt)) bc.focus() bc.validatepi(pid) bc.validateerrors(errors[r]) bc.close(False) pd.kpidetail() kd.viewdata() pid, cnt = pd.piidlink() if pid == None: ui.close() ui.close() #restore nav continue g.tc('validate KPI inst detail event inst count (OBE-9469)') if cnt > 3: g.tc('', 'fail', 'expected/actual <4/' + str(cnt)) bc.focus() bc.validatepi(pid) bc.close(False)
try: m.navauth('ProcessAnalytics') m.nav('ProcessAnalytics') #no auth when refreshing page later for x in range(20): g.tc('===='+str(x)+'====') pa.selectprocess('DBO_Process') pa.selectrange('4 Weeks') pa.selectvolumes() pa.piidlink() bc.focus() #focus in bc #do bc tests here bc.close() #focus back on main pa.selectprocess('DBO_Process') pa.selectrange('4 Weeks') g.focus_iframe() pa.zoomprocdiag(-8) pa.navstep('Service Task 1') g.focus() sleep(4) #yellow mutation pa.selectvolumes({'level':'step','range':'curr','status':'Completed'}) pa.piidlink() bc.focus() #focus in bc #do bc tests here bc.close() #focus back on main