public synchronized void updateGui(Sample s) {
// We have received one more sample
graph.updateGui(s);
noSamplesField.setText(Long.toString(s.getCount())); // Line 140
dataField.setText(Long.toString(s.getData()));
averageField.setText(Long.toString(s.getAverage()));
deviationField.setText(Long.toString(s.getDeviation()));
throughputField.setText(nf.format(60 * s.getThroughput()) + "/" + minute); // $NON-NLS-1$
medianField.setText(Long.toString(s.getMedian()));
updateYAxis();
}
Also at org.apache.jmeter.visualizers.GraphVisualizer.add(GraphVisualizer.java:151)
//working
public void add(SampleResult res) {
updateGui(model.addSample(res)); //Line 151
String filename;
Calendar cal = Calendar.getInstance();
try {
filename = res.getUrlAsString() + cal.getTime() + ".html";
filename = filename.replace("http://", "");
filename = filename.replace('/', '-');
File file = new File(folderDestination + "/" + filename);
FileWriter writer = new FileWriter(file);
writer.write(res.getResponseDataAsString());
writer.close();
} catch (IOException ex) {
ex.printStackTrace();
}
}
Could you give me any idea about what should be happening ?
Agustín,
Extending JMeter is very easy. First thing you need is to choose
plugin type you write. There is listeners, samplers, timers, thread
groups, configs, pre- and post-processors, assertions and controllers.
Which one do you choose? Have you an idea what will be enough for your
degree project?
I don't know articles on extending JMeter except this tutorial:
http://jakarta.apache.org/jmeter/extending/jmeter_tutorial.pdf
When I was starting this project I found that tutorial useless and
just got JMeter's code and looked how they implement out-of-the-box
plugins.
Also you need to know Java programming language and some IDE where
you'll write your code.
One week is enough to write plugin. Hold on, pal!
On 19 фев, 21:22, Agustín Sabater Piñeiro <pinye...@gmail.com> wrote:
> Hello, my name is Agustín, nice to meet you.
>
> My final degree project is to develop a simple plugin for JMeter, this
> is a problem because i dont know very well how I can start the plugin.
> So if you can give me any bog post, or website, so I can start
> developing i would be very thankful to you.
>
> I really need it, because if I dont give some results in a week i
> would be rejected from the college. :(
Hi,
Easiest way is to take existing plugin's source code and modify it for your needs. Take it here:https://github.com/undera/jmeter-plugins/tree/master/plugins/casutg
--
Andrey Pokhilko
--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry, but I have not time to mentor you.
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/igEutZWY2kM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.
It's done like this:
https://github.com/apache/jmeter/blob/trunk/src/functions/org/apache/jmeter/functions/TestPlanName.java#L51
jmeter/bin/FilterResults.sh --success-filter true --output-file filteredout.xml --input-file inputfile.csv
Hi,
The simplest way usually to take source code of existing plugin and start from there.
To validate your code works, you should have unit tests to quicky
build and run your code pieces.
--
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugins+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "jmeter-plugins" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jmeter-plugins/igEutZWY2kM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jmeter-plugins+unsubscribe@googlegroups.com.
Use Unit-test for that, too. Here's example how you do it:
https://github.com/undera/jmeter-plugins/blob/e8b2285c678b1de49bf8e8a1b72de69bf3ceb6a6/plugins/udp/src/test/java/kg/apc/jmeter/samplers/UDPSamplerGuiTest.java#L23
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
--
To unsubscribe from this group and all its topics, send an email to jmeter-plugin...@googlegroups.com.