Hi,

I am still having problems printing a global when reading a csv using
a BeanShell pre-processor. The BeanShell jar is in the lib directory.

<jmeterTestPlan version="1.2" properties="1.8">
 <hashTree>
   <TestPlan guiclass="TestPlanGui" testclass="TestPlan"
testname="ALL_VIA_Tests" enabled="true">
     <collectionProp name="TestPlan.thread_groups"/>
     <elementProp name="TestPlan.user_defined_variables"
elementType="Arguments" guiclass="ArgumentsPanel"
testclass="Arguments" testname="User Defined Variables"
enabled="true">
       <collectionProp name="Arguments.arguments"/>
     </elementProp>
     <stringProp name="TestPlan.user_define_classpath"></stringProp>
     <boolProp name="TestPlan.serialize_threadgroups">true</boolProp>
     <boolProp name="TestPlan.functional_mode">false</boolProp>
     <stringProp name="TestPlan.comments"></stringProp>
   </TestPlan>
   <hashTree>
     <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup"
testname="Thread Group" enabled="true">
       <longProp name="ThreadGroup.start_time">1182362026000</longProp>
       <stringProp name="ThreadGroup.delay"></stringProp>
       <stringProp name="ThreadGroup.duration"></stringProp>
       <stringProp name="ThreadGroup.num_threads">1</stringProp>
       <boolProp name="ThreadGroup.scheduler">false</boolProp>
       <elementProp name="ThreadGroup.main_controller"
elementType="LoopController" guiclass="LoopControlPanel"
testclass="LoopController" testname="Loop Controller" enabled="true">
         <stringProp name="LoopController.loops">1</stringProp>
         <boolProp name="LoopController.continue_forever">false</boolProp>
       </elementProp>
       <longProp name="ThreadGroup.end_time">1182362026000</longProp>
       <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
       <stringProp name="ThreadGroup.ramp_time">1</stringProp>
     </ThreadGroup>
     <hashTree>
       <BeanShellPreProcessor guiclass="TestBeanGUI"
testclass="BeanShellPreProcessor" testname="BeanShell PreProcessor"
enabled="true">
         <stringProp name="script">print(${testcase});</stringProp>
       </BeanShellPreProcessor>
       <hashTree/>
     </hashTree>
     <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet"
testname="CSV Data Set Config" enabled="true">
       <stringProp name="delimiter">,</stringProp>
       <stringProp name="variableNames">testcase,testdescription</stringProp>
       <boolProp name="recycle">true</boolProp>
       <stringProp name="filename">C:\all_data.csv</stringProp>
     </CSVDataSet>
     <hashTree/>
   </hashTree>
 </hashTree>
</jmeterTestPlan>


the csv 'C:\all_data.csv' contains

test1,a test

Thanks for your help

Aidy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to