[英]How can I split selenium test classes from selenium framework?
I am currently working at my job on GUI web pages automation using selenium via Java in Intellij. 我目前正在通过Intellij中的Java使用硒实现GUI网页自动化。 We have few product development teams, where one is maintaining&developing continuously selenium framework and theirs tests.
我们很少有产品开发团队,其中一个团队正在维护和开发连续的硒框架及其测试。 Other teams grabbed selenium framework few months ago and developed their own tests, now they are continuing to develop tests only.
其他团队几个月前就抓住了硒框架并开发了自己的测试,现在他们仅继续开发测试。 All teams uses Git/Gerrit and Jenkins for continues integration.
所有团队都使用Git / Gerrit和Jenkins进行持续集成。 The issue for me is that two teams mentioned above, uses framework which is outdated now.
对我来说,问题是上述两个团队使用的框架现在已经过时了。 My concern now is;
我现在关心的是;
Is there a way to keep framework(together with Page Object classes) as a separate project, and then have separate projects, per each team, with test classes only? 有没有一种方法可以将框架(与Page Object类一起)保留为一个单独的项目,然后每个团队每个仅具有测试类的项目就可以拥有一个单独的项目?
I have tried to ask google first, but unfortunately did not find anything. 我曾尝试先问过Google,但很遗憾没有找到任何东西。
It sounds like you are asking for the following 3 projects: 听起来您正在要求以下3个项目:
Each project would be independent of one another and follow simple project dependency rules: interfaces for communication between package and no shared usage of implementation classes. 每个项目将彼此独立,并遵循简单的项目相关性规则:包之间进行通信的接口,并且不共享实现类。
Each Selenium test project would be maintained entirely independent from the other. 每个硒测试项目将完全独立于其他项目进行维护。 The PageObjects common library would be the synchronization point and have a defined API for application navigation.
PageObjects公共库将是同步点,并具有用于应用程序导航的已定义API。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.