简体   繁体   English

如何从Selenium框架拆分Selenium测试类?

[英]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个项目:

  1. PageObject common library (based upon Selenium) PageObject公共库(基于Selenium)
  2. Team #1 test cases using common library + Selenium version Y 使用通用库+ Selenium版本Y的团队#1测试用例
  3. Team #2 test cases using common library + Selenium version X 使用公共库+ Selenium版本X的团队#2测试用例

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.

相关问题 如何将Java Selenium测试分成单独的类? - How can I split my Java Selenium tests into separate classes? 如何配置Spring STS运行Selenium测试类? - How do I configure Spring STS to run Selenium test classes? 如何使用带有Selenium WebDriver的TestNG Framework在Excel文件中编写测试结果(通过/失败)? - How can I write Test Result (Pass/Fail) in Excel file using TestNG Framework with Selenium WebDriver? 硒测试班 - Selenium test organisation of classes 如何在Selenium 2中的类之间共享@Before和@Test? - How to share @Before and @Test among classes in Selenium 2? 如何拆分字符串<br>使用 Selenium 和 Java 进入列表 - How can I split the string by <br> into a list using Selenium and Java 如何使用Selenium框架从受用户名和密码保护的网站上下载文件? - How can I download a file from a site that is protected with a username and password, using the Selenium framework? 如何从Selenium API获取Selenium变量,该变量指示Selenium仍在运行 - How can I get a selenium variable from selenium API which indicates selenium is still running 如何将登录 JFrame 插入到 Selenium 中的测试中? - How can I insert a login JFrame into a test in Selenium? 如何在Selenium中测试“记住我”复选框功能 - How can I test a “Remember Me” checkbox feature in Selenium
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM