Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests and documentation for WebPage composite element #132

Closed
AlexeyGirin opened this issue May 6, 2019 · 9 comments
Closed

Add tests and documentation for WebPage composite element #132

AlexeyGirin opened this issue May 6, 2019 · 9 comments
Assignees
Labels
language:java For work items related to java implementation

Comments

@AlexeyGirin
Copy link
Contributor

AlexeyGirin commented May 6, 2019

Write documentation on all methods for WebPage

Add @url and @title validation tests with all combinations of these annotations params (including cases where some annotations missed)
Add tests on all Page actions
Add the same tests for WebPage as for Section
Add tests for PageObjects that not extend WebPage and placed on some Site

Tests should be located at dedicated directory on the same level as complex and simple

@AlexeyGirin
Copy link
Contributor Author

Ссылочка на документацию
https://jdi-docs.github.io/jdi-light/?java

Ссылка на репозиторий
https://github.com/jdi-testing/jdi-light

Туториал
https://jdi-docs.github.io/jdi-light/?java#tutorial

Ссылка на репозиторий документации (автоматически протягивается на сайт по коммиту)
https://github.com/jdi-docs/jdi-light/blob/master/source/includes/_documentation.md

@vladb00mer
Copy link
Contributor

Waiting for the test samples in directory "/Users/b00mer/IdeaProjects/jdi-light/jdi-light-html-tests/src/test/java/io/github/epam/html/tests/elements"

@vladb00mer
Copy link
Contributor

Самая важная часть тут инициализация - проверить что все инициализируется правильно во всех комбинациях (отдельная задача по методам WebPage и Form не буду ее касаться)
По инициализации. чтобы покрыть все комбинации и ускорить прохождение тестов, лучше создать отдельный псевдо Сайт с псведо "не реальными" элементами
Для этого сайта создать Пейджобджекты всех возможных вариантов с различными элементами и проверить что после запуска initElements - все элементы "инициализировались"
Это значит, что они

  1. как минимум не null,
  2. у них есть правильный локатор,
  3. есть правильный parent
  4. У них правильное name

Виды PageObjects которые надо проверить:

  1. SomeSite.cs
    @ui("") public static SomeSection …; -> SomeSection extends Section
    public static SomeSection …;
    @ui("") public static ExtendedSection …; -> ExtendedSection extends SomeSection extends Section
    public static ExtendedSection …;
    @ui("") public static SomeObject …;-> public class SomeObject {…}
    public static SomeObject …;
    @ui("") public static ExtendedObject …; -> ExtendedSection extends SomeObject {…}
    public static ExtendedObject …;
    @url(...) @title(...) public static SomePage …;
    @url(...) public static SomePage …;
    @title(...) public static SomePage …;
    public static SomePage …;

@vladb00mer
Copy link
Contributor

"Add @url and @title validation tests with all combinations of these annotations params (including cases where some annotations missed)": done but with some questions, pushed to branch "https://github.com/jdi-testing/jdi-light/tree/composite_elements_tests_(issues_130_131_132)"

@vladb00mer
Copy link
Contributor

"Add tests on all Page actions" - all tests are passed, pushed into branch "https://github.com/jdi-testing/jdi-light/tree/composite_elements_tests_(issues_130_131_132)"

@RomanIovlev RomanIovlev added language:java For work items related to java implementation and removed language:java For work items related to java implementation labels May 28, 2019
@AlexeyGirin
Copy link
Contributor Author

Скопипастить с секшана

@AlexeyGirin
Copy link
Contributor Author

@RomanIovlev please contact w/ @vladb00mer regarding this task

@AlexeyGirin
Copy link
Contributor Author

@RomanIovlev, please update the documentation

@AlexeyGirin
Copy link
Contributor Author

Demo has been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language:java For work items related to java implementation
Projects
Archived in project
Development

No branches or pull requests

3 participants