Ad Widget

Collapse

Can you use variables as "required strings" in Web Scenarios?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kitkit201
    Junior Member
    • Jan 2014
    • 9

    #1

    Can you use variables as "required strings" in Web Scenarios?

    So i am creating a web scenario, that is pikcing up a string and holding it as a variable in step1. Then in step 2, it uses that string on another part of the site to make sure it exists.


    My Regex expresion in step 1 is
    {titlename}=regex:title="([a-zA-Z0-9,: -]+)

    However, i think the "required string" step in step 2, is taken the litteral {titlename} and not interpretting it as a MACRO name.

    How can I make it interpret the macro instead of the literal?

    Thanks
    Kit
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    You can use only MACRO in Required string (function substitute_simple_macros).
    VARIABLE can be used only in Post and URL (function http_substitute_variables).

    Source: source code https://www.zabbix.org/websvn/wsvn/z...ler/httptest.c
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...