Ad Widget

Collapse

Cannot apply a custom template containg a web scenario and an Item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haubuchon
    Junior Member
    • Oct 2022
    • 4

    #1

    Cannot apply a custom template containg a web scenario and an Item

    I was having aproblem to clone hosts since I upgratded to 6.4.5 and found out was was causing it:

    I did some advanced troubleshooting and I think I have discovered a bug.
    If someone can test this scenario with 6.4.5 on Linux, I would appreciate. Than I can submit the bug. It was working with 6.4.3.

    It has to do with applying a custom template to a host.

    Steps: (I tested from a freshly installed version with no data).
    1. create a new host (nothing special)
    2. Create a new template
    3. In that template, create a Web scenario
    4. In this scenario add a step (iURL: www.google.com, Follow redirects: ON, Required status Code: 200)
    5. In this scenario, create a dependant Item: (Type: Dependant Item, Master Item: Response Code for step "your step" of scenario "your scenario")
    6. In this scenario item, create a Preprocessing: (Name: JavaSript, Parameters: return value == 200 ? "Good" : "Bad" ; )
    7. In host, add this new template
    My result: web interface goes in a loop and returns with a timeout error after 5 minutes or so) No error in log.

    Note: If I ceate this web scenatio and item directly in the host, everything works.

    Thanks !​
Working...