data_source:
  type: csv
  mode: sequential
  path: /Users/delvisecheverria/Downloads/users.csv
  variable_names: email,pass
  name: Data Source
http_defaults:
  base_url: http://www.testingyes.com
  follow_redirects: true
  headers:
    Accept-Encoding: gzip, deflate
    Accept-Language: en-US,en;q=0.9
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0
scenarios:
  - name: Recorded Scenario
    load:
      type: constant
      users: 1
      duration: 1m
      ramp_up: 1s
      iterations: 1
    cookies:
      mode: auto
    steps:
      - request:
          name: HOMEAPAGE - GET /demo
          method: GET
          url: /demo
          recorded_at: '2026-03-11T17:44:06.34949Z'
          response_preview:
            status: 301
            size_bytes: 279
            time_ms: 160
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          assertions:
            - type: status
              value: 301
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=01733ac88cbeadc148e7768228770a67; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-5s
      - request:
          name: HOMEAPAGE - GET /demo/
          method: GET
          url: /demo/
          recorded_at: '2026-03-11T17:44:06.514699Z'
          response_preview:
            status: 200
            size_bytes: 4538
            time_ms: 491
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          spark:
            - when: after
              script: |
                var body = String((response && response.body) || "");
                var match = body.match(/(?:var|let|const)\s+securityToken\s*=\s*["']([^"']+)["']/i);
                vars.set("Securitytoken_Spark", match ? match[1] : "");
          extractors:
            - type: regex
              from: body
              var: securityToken
              default: Regex value not found
              pattern: (?is)(?:var|let|const)\s+securityToken\s*=\s*["']([^"']+)["']
              group: '1'
              variable: securityToken
              capture_mode: first
              match_no: 1
              template: $1$
          assertions:
            - type: contains
              value: Wellcome to TestingYes! WebApp Demo
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=01733ac88cbeadc148e7768228770a67; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Upgrade-Insecure-Requests: '1'
      - think_time: 2s
      - request:
          name: Click Login - GET /demo/index.php?main_page=login
          method: GET
          url: /demo/index.php?main_page=login
          recorded_at: '2026-03-11T17:48:08.890825Z'
          response_preview:
            status: 200
            size_bytes: 13589
            time_ms: 546
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=01733ac88cbeadc148e7768228770a67; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-4s
      - request:
          name: Click Login - POST /demo/index.php?main_page=login&action=process
          method: POST
          url: /demo/index.php?main_page=login&action=process
          body: securityToken={{securityToken}}&email_address={{emaiol}}&password={{pass}}&securityToken={{securityToken}}
          recorded_at: '2026-03-11T17:48:20.687012Z'
          response_preview:
            status: 302
            size_bytes: 0
            time_ms: 380
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          assertions:
            - type: response_time
              value: <5000
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Content-Length: '149'
            Content-Type: application/x-www-form-urlencoded
            Cookie: zenid=01733ac88cbeadc148e7768228770a67; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Origin: http://www.testingyes.com
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=login
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-5s
      - request:
          name: Click Login - GET /demo/index.php?main_page=index
          method: GET
          url: /demo/index.php?main_page=index
          recorded_at: '2026-03-11T17:48:21.070308Z'
          response_preview:
            status: 200
            size_bytes: 4655
            time_ms: 619
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=login
            Upgrade-Insecure-Requests: '1'
      - think_time: 2s
      - request:
          name: Select Product - GET /demo/index.php?main_page=product_info&cPath=1&products_id=4
          method: GET
          url: /demo/index.php?main_page=product_info&cPath=1&products_id=4
          recorded_at: '2026-03-11T17:48:47.211683Z'
          response_preview:
            status: 200
            size_bytes: 5663
            time_ms: 563
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          extractors:
            - type: regex
              from: body
              var: products_id
              default: Regex value not found
              pattern: (?is)<input[^>]*name=["']products_id["'][^>]*value=["']([^"']+)["']
              group: '1'
              variable: products_id
              capture_mode: first
              match_no: 1
              template: $1$
          assertions:
            - type: regex
              value: (?is)name=["']products_id["']
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=index
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-4s
      - request:
          name: Add to Card - POST /demo/index.php?main_page=product_info&cPath=1&products_id=4&action=add_product
          method: POST
          url: /demo/index.php?main_page=product_info&cPath=1&products_id={{products_id}}&action=add_product
          body: "------geckoformboundaryf2847a67b157f19752befee16c4c0088\r\nContent-Disposition: form-data; name=\"securityToken\"\r\n\r\nff5b3265d358b98064e2bf7ad0b56d65\r\n------geckoformboundaryf2847a67b157f19752befee16c4c0088\r\nContent-Disposition: form-data; name=\"cart_quantity\"\r\n\r\n1\r\n------geckoformboundaryf2847a67b157f19752befee16c4c0088\r\nContent-Disposition: form-data; name=\"products_id\"\r\n\r\n4\r\n------geckoformboundaryf2847a67b157f19752befee16c4c0088--\r\n"
          recorded_at: '2026-03-11T17:48:59.873089Z'
          response_preview:
            status: 302
            size_bytes: 0
            time_ms: 302
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Content-Length: '436'
            Content-Type: multipart/form-data; boundary=----geckoformboundaryf2847a67b157f19752befee16c4c0088
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Origin: http://www.testingyes.com
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=product_info&cPath=1&products_id=4
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-5s
      - request:
          name: Add to Card - GET /demo/index.php?main_page=shopping_cart
          method: GET
          url: /demo/index.php?main_page=shopping_cart
          recorded_at: '2026-03-11T17:49:00.179477Z'
          response_preview:
            status: 200
            size_bytes: 5594
            time_ms: 492
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=product_info&cPath=1&products_id=4
            Upgrade-Insecure-Requests: '1'
      - think_time: 2s
      - request:
          name: Checkout - GET /demo/index.php?main_page=checkout_shipping
          method: GET
          url: /demo/index.php?main_page=checkout_shipping
          recorded_at: '2026-03-11T17:49:14.174217Z'
          response_preview:
            status: 200
            size_bytes: 5156
            time_ms: 676
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=shopping_cart
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-4s
      - request:
          name: Checkout - POST /demo/index.php?main_page=checkout_shipping
          method: POST
          url: /demo/index.php?main_page=checkout_shipping
          body: securityToken={{securityToken}}&action=process&shipping=item_item&comments=
          recorded_at: '2026-03-11T17:49:19.293343Z'
          response_preview:
            status: 302
            size_bytes: 0
            time_ms: 290
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Content-Length: '90'
            Content-Type: application/x-www-form-urlencoded
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Origin: http://www.testingyes.com
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_shipping
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-5s
      - request:
          name: Checkout - GET /demo/index.php?main_page=checkout_payment
          method: GET
          url: /demo/index.php?main_page=checkout_payment
          recorded_at: '2026-03-11T17:49:19.586428Z'
          response_preview:
            status: 200
            size_bytes: 6334
            time_ms: 445
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_shipping
            Upgrade-Insecure-Requests: '1'
      - think_time: 2s
      - request:
          name: Checkout - POST /demo/index.php?main_page=checkout_confirmation
          method: POST
          url: /demo/index.php?main_page=checkout_confirmation
          body: securityToken={{securityToken}}&action=submit&dc_redeem_code=&payment=moneyorder&comments=
          recorded_at: '2026-03-11T17:49:21.031769Z'
          response_preview:
            status: 200
            size_bytes: 5666
            time_ms: 403
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Content-Length: '105'
            Content-Type: application/x-www-form-urlencoded
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Origin: http://www.testingyes.com
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_payment
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-4s
      - request:
          name: Checkout - POST /demo/index.php?main_page=checkout_process
          method: POST
          url: /demo/index.php?main_page=checkout_process
          body: securityToken={{securityToken}}
          recorded_at: '2026-03-11T17:49:30.826506Z'
          response_preview:
            status: 302
            size_bytes: 0
            time_ms: 392
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Content-Length: '46'
            Content-Type: application/x-www-form-urlencoded
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Origin: http://www.testingyes.com
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_confirmation
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-5s
      - request:
          name: Checkout - GET /demo/index.php?main_page=checkout_success
          method: GET
          url: /demo/index.php?main_page=checkout_success
          recorded_at: '2026-03-11T17:49:31.221905Z'
          response_preview:
            status: 200
            size_bytes: 5423
            time_ms: 703
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          assertions:
            - type: not_contains
              value: Fatal error
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_confirmation
            Upgrade-Insecure-Requests: '1'
      - think_time: 2s
      - request:
          name: Confirm OrderLogOff - GET /demo/index.php?main_page=logoff
          method: GET
          url: /demo/index.php?main_page=logoff
          recorded_at: '2026-03-11T17:49:51.391588Z'
          response_preview:
            status: 302
            size_bytes: 0
            time_ms: 331
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_success
            Upgrade-Insecure-Requests: '1'
      - think_time: 1s-4s
      - request:
          name: Confirm OrderLogOff - GET /demo/index.php?main_page=logoff
          method: GET
          url: /demo/index.php?main_page=logoff
          recorded_at: '2026-03-11T17:49:51.726662Z'
          response_preview:
            status: 200
            size_bytes: 4274
            time_ms: 393
          cookie_override: inherit
          cache_override: inherit
          throughput:
            enabled: false
          retrieve_embedded_resources: false
          redirect_automatically: false
          follow_redirects: true
          enabled: true
          assertions:
            - type: response_size
              value: '>1000'
          headers:
            Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            Connection: keep-alive
            Cookie: zenid=9b1f14072ed043be60e3fd9337ab67b6; ceid=c54eb0aa42209de5dba865bbf2be88c0
            Priority: u=0, i
            Referer: http://www.testingyes.com/demo/index.php?main_page=checkout_success
            Upgrade-Insecure-Requests: '1'
