How to write a custom component resolver?

57 views
Skip to first unread message

Divesh Kumar

unread,
Mar 22, 2019, 8:32:00 AM3/22/19
to Marathon Java GUI Testing
Hi KD,

I went through marathon V5 userguide but could not find the steps to write a custom components resolver. I found that you had pointed to 'https://marathontesting.com/knowledge-base/extending-marathon-swing/' in other thread "Re: [sales:18] Contact Form - Submitted" but this page is not accessible now. Could you please guide me to the documentation on how to write a custom resolver?

Thanks,
Divesh

Dakshinamurthy Karra

unread,
Mar 26, 2019, 5:26:31 AM3/26/19
to marathon...@googlegroups.com
The marathon sources have a jxbrowser component resolver. Admittedly, it is complex but you should be able to understand the structure.

we will create documentation regarding resolvers and post soon.

-- KD

--
Dakshinamurthy Karra
Jalian Systems Pvt. Ltd.
1st Floor, #457, 3rd Cross
5th Main, 5th Block
H.B.R Layout
Bangalore - 560043
INDIA




--
Looking for professional help with your Marathon projects?
Go visit: http://marathontesting.com
---
You received this message because you are subscribed to the Google Groups "Marathon Java GUI Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marathon-testi...@googlegroups.com.
To post to this group, send email to marathon...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SHARAD GARG

unread,
Mar 26, 2019, 9:20:43 AM3/26/19
to Marathon Java GUI Testing
Does it have component resolver extension for Swing applications as well? 

Dakshinamurthy Karra

unread,
Mar 26, 2019, 11:05:17 AM3/26/19
to marathon...@googlegroups.com
Nope. We did it for FX. Making it work for Swing shouldn't be a major task.

-- KD

--
Dakshinamurthy Karra
Jalian Systems Pvt. Ltd.
1st Floor, #457, 3rd Cross
5th Main, 5th Block
H.B.R Layout
Bangalore - 560043
INDIA



SHARAD GARG

unread,
Mar 27, 2019, 3:23:46 AM3/27/19
to Marathon Java GUI Testing
Is there any documentation referring which we can write resolvers for Swing in marathon v5? 

SHARAD GARG

unread,
Mar 28, 2019, 5:52:35 AM3/28/19
to Marathon Java GUI Testing
Also, is "marathon.component.resolvers" property supported in marathon v5? If not, which property should be set for resolvers. 
Note: This is for swing applications. 

adit...@jaliansystems.com

unread,
Mar 28, 2019, 6:50:57 AM3/28/19
to Marathon Java GUI Testing
Hi

1. It is not needed to define "marathon.component.resolvers" property as we use java agent to run the extensions.
2. Component resolvers for Swing are as same as FX only minor changes where marathon-java-aget's classes are used instead of marathon-java-fx-agent's like:

  JavaFXElementFactory ---> JavaElementFactory
 JavaFXElement ---> JavaElement

 RFXComponentFactory ---> RComponentFactory

 RFXComponent ---> RComponent


3. Premain class name for extensions should end with "MarathonExtension" like "JXBrowserMarathonExtension".

4. Once the create jars need to be placed in 'marathon/UserLibs' folder,

 

Regards

Aditya Karra
Jalian Systems Pvt. Ltd.

SHARAD GARG

unread,
Mar 29, 2019, 4:46:21 AM3/29/19
to Marathon Java GUI Testing
After adding the custom jars in marathon/UserLibs folder, marathon fails to launch with the below error-

Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method

Do I need to make any other changes in project.json? I am not sure of the exact steps involved in using custom resolvers. 

Ranjit M

unread,
Mar 29, 2019, 7:09:58 AM3/29/19
to marathon...@googlegroups.com
Hi Team,

I have been using marathon scripts for past 1 year. my application is java swing based. Is this possible to do the PT using this script with jmeter plugin?

Thanks & Regards,
RanjitM

--

adit...@jaliansystems.com

unread,
Mar 29, 2019, 8:02:47 AM3/29/19
to Marathon Java GUI Testing
Can you please post the full stack-trace of the exception.

Regards

Aditya Karra
Jalian Systems Pvt. Ltd.
Reply all
Reply to author
Forward
0 new messages