[英]How to navigate to a resource by path from the xml file in IntelliJ Idea?
我有一个xml文件( src / main / resources / all_suites.xml ),其中包含有关TestNG框架测试套件的信息。 看起来像这样:
<!-- shopping, booking and retrieve-->
<suiteRef path="suite_shopping_create_order_retrieve.xml"/>
<!-- shopping, booking and fulfillment-->
<suiteRef path="suite_shopping_booking_air.xml"/>
所有这些参考都指向具有特定测试用例的现有文件 。 它们位于同一位置(src / main / resources /)
在Eclipse中,我可以将每个路径值悬停( 例如suite_shopping_booking_air.xml ),单击鼠标左键,相应的文件将在编辑器中打开。
https://gyazo.com/d95ef56fc2fd43c9d0cb81fcdf8094e8
如何在Idea Community Edition中做同样的事情?
PS:我知道所有Idea导航机会(Ctrl + N,Ctrl + Shift + N等),但它们不满足我。
提前致谢。
如果您检查TestNG DTD ,则不会在其中找到suiteRef
。
IntelliJ IDEA支持suite-file
和suite-files
导航。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.