Exemple #1
0
    #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:
            pa.navstep(step)
            sleep(4)
            g.focus_main()
            pa.selectvolumes({'level':'step','range':'prev','status':'Completed'})
            pa.selectvolumes({'level':'step','range':'curr','status':'All'})
            #sleep(2)
            g.focus_iframe() #jump to diagram
        steps.reverse()     #steps in backward order just for fun
        sleep(2)
        pa.zoomprocdiag(zoom) #blowup diagram just for fun

except:
    g.error()
finally:
    g.clean()
Exemple #2
0
"""
example navigate step on process diagram and select a volume for it
"""

try:

    #get there
    ui.navauth('ProcessAnalytics')
    pa.selectprocess('complex')
    pa.selectrange('4 Weeks')
    pa.selectvolumes({'level':'proc','range':'prev','status':'Completed'}) #select volume for step

    #nav through the step
    g.focus_iframe() #jump to diagram
    pa.zoomprocdiag(-8) #shrink diagram
    pa.navstep('Verify Info') #click on step
    g.focus() #back to main page from iframe
    sleep(4) #mutations on volume section
    pa.selectvolumes({'level':'step','range':'curr','status':'All'}) #select volume for step

    #optional
    g.focus_iframe() #jump to diagram
    pa.zoomprocdiag(0) #back to 1:1 zoom

except:
    g.error()
finally:
    g.clean()

Exemple #3
0
        #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)
        bc.close()

        #nav through the step
        g.focus_iframe() #jump to diagram
        #pa.zoomprocdiag(-8) #shrink diagram
        pa.navstep('Service Task 1') #click on step
        g.focus_main() #back to main page from iframe
        pa.selectvolumes({'level':'step','range':'curr','status':'All'})
        pid = pa.piidlink('2') #3nd link
        bc.focus()
        bc.validatepi(pid)
        bc.close()

        #check mag glass link nav is disabled for step
        g.focus_iframe() #jump to diagram
        #pa.zoomprocdiag(-8) #shrink diagram
        pa.navstep('Service Task 1') #click on step
        g.focus_main() #back to main page from iframe
        pa.selectvolumes({'level':'step','range':'curr','status':'All'})
        pa.magglasscheck('0',False)
Exemple #4
0
        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

        #g.driver.find_element_by_tag_name('body').send_keys(Keys.CONTROL + Keys.TAB)

except:
    g.error()
finally:
    g.clean()