Is there a way to check the gatling syntax whatever you use eclipse or intellij?

183 views
Skip to first unread message

yi....@zuora.com

unread,
Apr 17, 2018, 5:32:18 AM4/17/18
to Gatling User Group
I tried to write Gatling code in intellij, but I found there is no syntax tip when I write any object. When I tried to format the code with import optimization, I found the gatling related import disappeared.
When I run it from command line, I just find the syntax error. There is not any indicator in IDE. Does anyone know how to let IDE work for syntax auto completion for Gatling? Thanks!

johnso...@exosite.com

unread,
Apr 17, 2018, 9:54:52 PM4/17/18
to Gatling User Group
Did you use Gatling's maven archetype to create the project at first? That might help a bit.

yi....@zuora.com

unread,
Apr 17, 2018, 10:51:54 PM4/17/18
to Gatling User Group
Thanks for your reply. I have applied Gatling maven archtype to my project. But it seemed no help on my requirement. I don't want to run the gatling in eclipse or intellij, just want to develop the script with auto completion since I am not familiar with gatling syntax. Thanks!
Message has been deleted

yi....@zuora.com

unread,
Apr 17, 2018, 11:29:25 PM4/17/18
to Gatling User Group
Thanks for your instruction.  I have applied scala sdk into my project. But it only can prompt the scala syntax for me. on gatling specific syntax, i still can't get tip as below image. After the "http" object, there should be "baseUrl" or "header", etc. But there are only scala syntax in the list.



On Wednesday, April 18, 2018 at 11:22:13 AM UTC+8, Johnson Chuang wrote:
In Intellij, when you open a scala class the IDE should ask you if you want to add the scala sdk module.


If it doesn't prompt the bar, you can add it yourself in "project structure" -> "Modules".

In my case, that should do the trick. If doing that still not works for you, I'm out of ideas.



--

Johnson Chuang 莊 家 昇 // Senior QA

Office: +886 422-471-623

Fax:    +886 422-476-660

E X O S I T E 

22F-1, No.955, Sec. 4, Wenxin Rd., Beitun Dist., 

Taichung City, 40654, Taiwan 

www.exosite.com 

This communication contains confidential information that is proprietary to 

Exosite. Any unauthorized use or disclosure of this information is 

strictly prohibited. If you are not the intended recipient, please delete this 

message and any attachments, and advise the sender by return e-mail.


--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/K8bhzPobyLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

johnso...@exosite.com

unread,
Apr 17, 2018, 11:41:49 PM4/17/18
to Gatling User Group
I guess there might be something wrong with your intellij importing/opening the gatling project. In the "Project" view you should see lots of libraries from maven and the default directories setup of gatling archetype(src/test/resources & src/test/scala).




On Tuesday, April 17, 2018 at 5:32:18 PM UTC+8, yi....@zuora.com wrote:

yi....@zuora.com

unread,
Apr 18, 2018, 2:05:43 AM4/18/18
to Gatling User Group
Many thanks, I have solved the issue. After "mvn package" under the project, the packages were downloaded and worked well. Thanks again!

Johnson Chuang

unread,
Apr 18, 2018, 4:59:36 AM4/18/18
to gat...@googlegroups.com
Nice, glad to see the issue resolved.

--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/K8bhzPobyLA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages