[英]How to navigate to a resource by path from the xml file in IntelliJ Idea?
I have an xml file ( src/main/resources/all_suites.xml ) with information about test suites for TestNG framework. 我有一个xml文件( src / main / resources / all_suites.xml ),其中包含有关TestNG框架测试套件的信息。 It looks like this:
看起来像这样:
<!-- shopping, booking and retrieve-->
<suiteRef path="suite_shopping_create_order_retrieve.xml"/>
<!-- shopping, booking and fulfillment-->
<suiteRef path="suite_shopping_booking_air.xml"/>
All these references point to existing files with specific test cases. 所有这些参考都指向具有特定测试用例的现有文件 。 They are located in the same place (src/main/resources/)
它们位于同一位置(src / main / resources /)
In Eclipse I can hover each path value ( eg suite_shopping_booking_air.xml ), click left mouse button and the corresponding file will be opened in the editor. 在Eclipse中,我可以将每个路径值悬停( 例如suite_shopping_booking_air.xml ),单击鼠标左键,相应的文件将在编辑器中打开。
https://gyazo.com/d95ef56fc2fd43c9d0cb81fcdf8094e8 https://gyazo.com/d95ef56fc2fd43c9d0cb81fcdf8094e8
How can do the same thing in Idea Community Edition? 如何在Idea Community Edition中做同样的事情?
PS I know about all Idea navigation opportunities (Ctrl+N, Ctrl+Shift+N and etc) but they don't satisfy me. PS:我知道所有Idea导航机会(Ctrl + N,Ctrl + Shift + N等),但它们不满足我。
Thanks in advance. 提前致谢。
If you check the TestNG DTD , you will not find suiteRef
there. 如果您检查TestNG DTD ,则不会在其中找到
suiteRef
。
IntelliJ IDEA supports suite-file
and suite-files
navigation. IntelliJ IDEA支持
suite-file
和suite-files
导航。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.