Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ide_script [2024/01/02 19:47] – [PAGES Script] admin | ide_script [2024/01/02 19:49] (current) – [User Script] admin | ||
---|---|---|---|
Line 160: | Line 160: | ||
//Steps// are annotated groovy functions as follows: | //Steps// are annotated groovy functions as follows: | ||
- | | ||
- | def setBrowserType (String browserType) { | ||
- | $SELENIUM.setBrowserType(browserType); | ||
- | } | ||
- | |||
| | ||
def gotoURL (String url) { | def gotoURL (String url) { | ||
- | $SELENIUM.getWebDriver().get(url); | + | $VAR.webdriver.get(url); |
} | } | ||
| | ||
def loginAs (String userid, String password) { | def loginAs (String userid, String password) { | ||
- | $SELENIUM.getWebDriver().findElement(By.id(' | + | $VAR.webdriver.findElement(By.id(' |
- | $SELENIUM.getWebDriver().findElement(By.id(' | + | $VAR.webdriver.findElement(By.id(' |
} | } | ||
Line 187: | Line 182: | ||
Consider your model as a map to //GPS//, //MCase// is just a set of way points you want to visit. When you execute //MCase//, a sequence | Consider your model as a map to //GPS//, //MCase// is just a set of way points you want to visit. When you execute //MCase//, a sequence | ||
- | $SYS.getMCaseMgr().addMCase(' | + | $MCASE.addMCase(' |
- | $SYS.getMCaseMgr().addMCase(' | + | $MCASE.addMCase(' |
In additional to follow through path and execute the automation script (// | In additional to follow through path and execute the automation script (// | ||
Line 212: | Line 207: | ||
| | ||
def ' | def ' | ||
- | $SYS.log(' | + | $EXEC.log(' |
- | $SYS.log(' | + | $EXEC.log(' |
} | } | ||