AnsweredAssumed Answered

e2e Appmon samples

Question asked by aaron.marquet on Mar 17, 2014
Latest reply on May 21, 2014 by DanielMarques81982792

Hi,

 

Is it possible to enable samples within or for an e2e script.

Example: my script lauches a website and then performs an OCR text check. This fails intermittently but not because there is an actual issue with the site.

I'd like to add a sample so if it fails to lauch the site twice i then get an alert. Much like you can to with the CDM probe etc.

 

This is an example of the script:

 

nimSetVariable("subsystem", "Website")
target$ = "Website Launch #1"
nimSetVariable("suppression_id", target$)
nimQOSStart()

Shell("https://website.com.au/Login.aspx?returnurl=/Home.aspx",3)

ret = UseOCREngine(2)

 Pause 60 secs until
  TextOCR("Log i n")
  InWindow("IEXPLORE.EXE|Internet Explorer_Server|Login - Windows Internet Explorer|1",2)
  InArea(564,155,40,74)
 PauseFalse
  nimAlarmSimple(5, "Website Launch Failed")
  nimQOSStop()
  nimQOSSendNull(target$)
  nimEnd()
  Clean_up()
  End
 EndPause
 nimAlarmSimple(0, "Website Launch failed")
  nimQOSStop()
  nimQOSSendTimer(target$)

Outcomes