Maven and POM Flashcards

1
Q

What is maven?

A

Maven is a build automation and project management tool primarily used for Java projects. It helps manage dependencies, build processes, and project lifecycles in a standardized way.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a framework?

A

A framework is a structured environment that provides reusable components, tools and libraries to help with development, deployment and maintanance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is pom.xml file and why do we need it?

A

POM.xml is used as a projects configuration management file, containing dependencies, build settings and project coordinates. you can define how maven builds, tests, and packages the project. Without it it would make managing dependencies and builds more complex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is page object model?

A

The Page Object Model (POM) is a design pattern used in test automation to create object-oriented structures for web pages. It encapsulates web page elements and their interactions into reusable components, promoting code reusability and maintainability in automated tests. This pattern separates the test logic from the UI, making tests more robust and easier to maintain as changes to the UI are localized to the page objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is PageFactory?

A

PageFactory in Selenium is a class that helps initialize elements of a Page Object using annotations, making it easier to create and manage Page Objects in test automation. It comes with FindBy annotation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is project structure in page object model?

A

You have pages, tests, utilities, configs, libraries, dependencies, and reports.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly