import g import mwsm as ui import mws.processanalytics as pa from time import sleep """ Process analytics experimentation """ try: ui.navauth('ProcessAnalytics') pa.selectprocess('complex') #pa.selectrange('4 Weeks') #pa.selectvolume('All') zoom=8 #diagram shrink factor g.focus_iframe() #jump to diagram pa.zoomprocdiag(-zoom) #shrink diagram steps=pa.findsteps() #find steps or list steps: pa.zoomprocdiag(zoom) #shrink diagram #steps=['Verify Info','Send Notice'] for x in range(2): g.tc('==round '+str(x)) pa.zoomprocdiag(-zoom) #shrink diagram for step in steps:
import mws.processanalytics as pa import bc.g as bc from time import sleep """ navigate from PA to BC via process or step on process diagram """ try: ui.navauth('ProcessAnalytics') for n in range(10): for r in ['1 Week', '4 Weeks']: for p in ['complex', 'DBO_Process']: print('===== ' + str(n) + ' ' + str(r) + ' ' + str(p) + ' ======') pa.selectprocess(p) pa.selectrange(r) pa.selectvolumes({ 'level': 'proc', 'range': 'curr', 'status': 'All' }) pa.magglasscheck() except: g.error() finally: g.clean()
import bc.g as bc """ navigate from PA to BC via process or step on process diagram """ try: proc='DBO_Process' 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)
import g import mwsm as m import bc.g as bc import mws.processanalytics as pa from time import sleep Keys=g.Keys; EC=g.EC; driver=g.driver 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()