@Irham, Thanks for the resource. Actually, I tried JMeter Maven Plugin. The
problem occurred to me was that I want to generate the test result in
runtime as I have to use this results to generate a summary. I'm
interested in executing the test case by a JAVA API.

@Anurada, Thanks for the resource. I also tried this approach. But the
problem was that we have to provide the JMeter HOME path to execute the
test case. (JMeter should be locally installed.)

    JMeterUtils.setJMeterHome("/path/to/your/jmeter");

JMeterUtils.loadJMeterProperties("/path/to/your/jmeter/bin/jmeter.properties");n

Thanks and Regards,

On Fri, Nov 10, 2017 at 9:59 AM, Anuruddha Liyanarachchi <
[email protected]> wrote:

> Hi Kausn,
>
> This blog [1] explains how to run JMeter scripts using a standalone java
> program using JMeter jars.
>
> [1] https://www.blazemeter.com/blog/5-ways-launch-jmeter-
> test-without-using-jmeter-gui
>
> On Fri, Nov 10, 2017 at 7:38 AM, Irham Iqbal <[email protected]> wrote:
>
>> Hi Kasun,
>>
>> As I understood you are trying to run Jmeter scripts from your standalone
>> application. This is an example[1] for running Jmeter scripts using
>> jmeter-maven-plugin
>>
>> [1] https://github.com/jmeter-maven-plugin/jmeter-maven-plugin-example
>>
>> Thanks,
>> Iqbal
>>
>> On Wed, Nov 8, 2017 at 11:17 AM, Kasun Bandara <[email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I'm recently working on developing *Scenario Testing Framework *as a
>>> stand-alone application. The problem encountered to me was, even though I
>>> use JMeter API to run test suites it still requires JMeter home path in
>>> the local installation. Is there a workaround to run JMeter tests only
>>> using JMeter jars?
>>>
>>> There is one alternative exists that run the tests using maven, but here
>>> I'm interested in executing the test using JMeter APIs as I have to get
>>> back test results for further analysis.
>>>
>>> Thanks and Regards,
>>> --
>>> *Kasun Bandara*
>>> Software Engineer | WSO2
>>>
>>> Mobile: +94715787004 <+94%2071%20578%207004>
>>> <https://wso2.com/signature>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Irham Iqbal
>> Software Engineer
>> WSO2
>> phone: +94 777888452
>> <http://wso2.com/signature>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel      : +94 112 145 345
> a <[email protected]>[email protected]
>



-- 
*Kasun Bandara*
Software Engineer | WSO2

Mobile: +94715787004
<https://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to