We are using TestNG framework to run JMeter script. Our Jmeter script includes few include controllers. When we execute using JMeter UI, the script gets executed successfully. But when script is executed using TestNG frame work either it throws error like path not found (for relative coded path) or include controller step is skipped (for Hard coded path)
Tried with Hard coded path as well as relative path to include the other test fragment
Relative Path for JMX file in include controller: "../../../lib/SM_TestFragments/XML/clearDBTables.jmx"
Absolute Path for JMX file in include controller: "/home/test/REMS_CI_Test/AutomationHome/lib/SM_TestFragments/XML/clearDBTables.jmx"
When include controller have "../../../lib/SM_TestFragments/XML/clearDBTables.jmx" path, it throws error as:
09:27:19.603 [StandardJMeterEngine] ERROR org.apache.jmeter.control.IncludeController - Include Controller 'Include Controller' can't load '../../../lib/SM_TestFragments/XML/clearDBTables.jmx' - see log for details 09:27:19.623 [StandardJMeterEngine] ERROR org.apache.jmeter.util.JMeterUtils - Including file "../../../lib/SM_TestFragments/XML/clearDBTables.jmx" failed for Include Controller "Include Controller", unexpected error - see log for details Including file "../../../lib/SM_TestFragments/XML/clearDBTables.jmx" failed for Include Controller "Include Controller", unexpected error - see log for details
When include controller have "/home/test/REMS_CI_Test/AutomationHome/lib/SM_TestFragments/XML/clearDBTables.jmx" path, There is no entry in log. The step is skipped.