single page application - How to use JMeter WebDriver API programmatically from a java program.? -
i want conduct performance testing on single page application.i want programmatically .as know performance testing spa includes both client_end page loading,java script execution time , server_end response time, against asynchronous ajax calling.
i used jmeter api programmatically running test script @ server_end following how create , run apache jmeter test scripts java program? this.
now want run test script client_end using jmeter webdriver api programmatically.i follow how approach "end-client" performance testing on single-page (web) applications? doesn't give me enough information on how use jmeter webdriver api programmatically.
so question how can use webdriver api programmatically? suggestion???
i suggest following
- use jmeter gui , script inside jmeter gui did.
- save script *.jmx file
use following snippet automation
// load existing .jmx test plan fileinputstream in = new fileinputstream("/path/to/your/jmetertest.jmx"); hashtree hash = saveservice.loadtree(in); in.close(); // run jmeter test jmeter.configure(hash); jmeter.run();
Comments
Post a Comment