Ad Widget

Collapse

Trigger event if Web-check fails two times

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacobp85
    Junior Member
    • Mar 2010
    • 10

    #1

    Trigger event if Web-check fails two times

    Hey

    I have af Web check and it works well. But sometime i got an error because the system, we are testing are not as stable as we could hope for. The system is a external product we are using.

    I run the web-test every 60 sec, can i make a trigger that only triggers if we got an error two times in a row?
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #2
    Yes, you can. Can you post your current trigger?

    Comment

    • jacobp85
      Junior Member
      • Mar 2010
      • 10

      #3
      My trigger is like this:

      {test.system:web.test.fail[Checks for reportingsystem].last(0)}>1

      Comment

      • jacobp85
        Junior Member
        • Mar 2010
        • 10

        #4
        Hve anybody a solution?

        Comment

        • JBo
          Senior Member
          • Jan 2011
          • 310

          #5
          Hi,

          Maybe:

          {test.system:web.test.fail[Checks for reportingsystem].last(0)}>1 & {test.system:web.test.fail[Checks for reportingsystem].prev(0)}>1

          You'll find trigger functions in the manual.

          Are you sure that you want to raise a trigger only if 2 steps fail on each test ?
          According to the manual, a proper check would be:
          {host: web.test.fail[Scenario].last(0)}#0

          So, in your case,
          {test.system:web.test.fail[Checks for reportingsystem].last(0)}#0 & {test.system:web.test.fail[Checks for reportingsystem].prev(0)}#0

          Hope this helps,
          JBo

          Comment

          • Hubbitus
            Junior Member
            • Dec 2015
            • 1

            #6
            I got error in last part of expression "#0", should'nt it be like:
            Code:
            	{egais.montor:web.test.fail[Check portal alive].last(#2)}=0
            ?

            Comment

            • pfouquet
              Junior Member
              • Jan 2012
              • 10

              #7
              {test.system:web.test.fail[Checks for reportingsystem].min(#2)}>0

              Comment

              Working...