Ejemplo n.º 1
0
    for r in range(0, len(rules)):
        ui.search('"' + rules[r] + '"')  #search quoted(exact in mws)
        try:
            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))
Ejemplo n.º 2
0
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()
        sleep(4) #yellow mutation
        pa.selectvolumes({'level':'step','range':'curr','status':'Completed'})
        pa.piidlink()
        bc.focus() #focus in bc
        #do bc tests here