首页 > 解决方案 > Why is JMeter showing an undefined variable error in the response body even if the web page is working properly if I run it manually?

问题描述

(1/1)

ErrorException

Undefined index: current_institute_id

I am getting above error in jmeter response body but its working fine if i run web page manually . Also i have passed the value of current institute in request.

enter image description here

enter image description here

        <div class="container">
                                <div class="trace trace-as-html">
                    <table class="trace-details">
                        <thead class="trace-head"><tr><th>
                            <h3 class="trace-class">
                                <span class="text-muted">(1/1)</span>
                                <span class="exception_title"><abbr title="ErrorException">ErrorException</abbr></span>
                            </h3>
                            <p class="break-long-words trace-message">Undefined index: current_institute_id</p>
                        </th></tr></thead>
                        <tbody><tr><td><span class="block trace-file-path">in <span title="/var/www/html/mycc/t11/app/Http/Controllers/inquiry/AdmissionFormController.php line 1666"><strong>AdmissionFormController.

标签: jmeterperformance-testingload-testing

解决方案


正如我在屏幕截图中看到的那样,所提供的信息不足以彻底调查问题。但我可以注意到服务器无法识别您发送的数据。这意味着您可能正在发送服务器不期望的数据。

解决方法是了解流程后手动记录脚本。找了一个视频来解释这个过程。也许它会帮助您了解手动录制的方式,而不是依赖最终误导您的工具。

https://www.youtube.com/watch?time_continue=10&v=Njjz1kzS24E

我不确定这会对您提供的信息有所帮助。但它可能会引导您找到解决方案


推荐阅读