Database/automation Flashcards

1
Q

What is your role in database testing?

A

Validate and verify data, to test the relationship between tables, to test the table structure and data accuracy by writing complex SQL queries/statements
You test actual data against your requirements

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

What is the difference between primary and foreign key?

A

Primary key – this is the most unique value or column of data in a table. Appears once in a table
Foreign key – this is data shared amongst multiple tables that can be used to form relationship between tables

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

Differences between the JOINS

A

Inner join – matching info from two tables
Right join – matching and all info from right table, (N/A)
Left join – matching and all info from left table
Full outer join – all data

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

What database tool are you familiar with?

A

Oracle SQL developer
Microsoft SQL server
MySQL
Mongo DB
PostgreSQL
Toad

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

What is your automation framework

A

Selenium webdriver – automation tool
Java – coding language
IntelliJ – IDE – editor
Maven – built tool, dependencies and archives, jars, maven’s live repository to access and implement the dependencies directly into our projects
TestNG – testing Framework, organize, structure, and execute test (annotations, xml suite, execute tests in parallel or cross browser)

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

What is maven and what is the advantage of it when compared to a java project

A

Maven – plugin that could be used across all projects, dependencies and archives are located in a live repository, POM file (add you dependencies and the components of your project)

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

is the most ideal locator to use when locating an element

A

must be a unique locator (lD, Name), Xpath (dynamic and you can locate using relative or absolute xpath)
Relative and absolute xpath:
Relative – you are locating a unique element closer to the element you are trying to locate. And then you can go down the HTTP hierarchy to your element
Absolute- you are starting from the beginning of the http hierarchy to your element

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

What is the different between static and non-static method

A

Static – you can access this method directly using the class name and dot (.) operator. Static methods and variables belong to the class.
Non-static – you can access this method by creating an instance of the class and then using that with the dot operator to call your method

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

What are the different types of waits available and when would you use them?

A

Thread.sleep (implicit wait, hard coded), pauses the execution of the code for the specified time
Implicit wait – if action is not executed within the time frame provided or designated (hard coded time) it will throw an exception – beginning after navigating to a site.
Explicit wait – wait until the expected condition is met. The code will execute when the specified condition is fulfilled, you provide a maximum wait time. More dynamic, allows your test to execute faster
Fluent wait

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

What type of database testing do you normally perform and what is the tool you use?—

A

Functional test – database is working properly
Relation testing – relationship between tables and columns
Structural testing – structure of tables and columns and data types
Performance – verify the performance of the data base
Oracle SQL developer
SQL – Structured query language
DBMS- Database management system
RDBMS – relational database management system

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

What is the difference between inner join and left join?

A

Inner- matching info between two tables are retrieved
Left join – all matching values from table1 and table2 and all values from table1 as well
Full outer join – matching values from both tables and their matching values

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

What is a data schema –

A

relationship between the tables, tells us the primary keys and the foreign keys

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

Are you familiar with the page object model. Can you describe it

A

POM is primarily a design pattern for structuring UI interactions in test automation

In QA automation, the Page Object Model (POM) represents each web page with a separate class, encapsulating its elements and functionalities for improved test code readability and maintenance.

The Page Object Model (POM) is a design pattern in QA automation where each web page is represented by a separate class. These classes encapsulate the page’s elements and functionalities, enhancing test code readability, reusability, and maintenance.

Automated test design –
Page class (you store the locators and action for those elements into methods related to a pages of the website)
Test class – corresponding test class also related to the pages of the website and your page class where you call the action methods from your page class
Code more reusable, structure, maintainable to change
Data-Driven (apache POI)
Store values in excel and you can call these values into your tests and we can write back into the excel
For large data sets, multiple data sets
Parameterization of data
Hybrid design
A combination of different designs, more free

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

At what part of testing would you integrate automation testing?

A

Towards the end of my sprint running regression suits and finding possible candidates for automation scripts
And
Use automation in ci/cd pipeline

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

What kind of test would you run manually and others in automation?

A

Manual: new features and and tests that require human judgement (exploratory testing)
Automation : manual tests that are repetitive
And major functionalities

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

What is jmeter and what kinds of testing is it used for?

A

JMeter is a Java-based open-source desktop tool used for load, performance, and functional testing of web applications. It helps simulate scenarios and measure performance across web services, databases, and servers.

Performance testing
Load testing
Stress testing
Functional testing

17
Q

What is api testing?

A

API testing involves verifying the functionality, reliability, performance, and security of application programming interfaces (APIs), ensuring they work as expected, handle data correctly, respond to errors appropriately, perform well, and are secure.(comparing results to expected results)

18
Q

Describe how you use postman to run api test?

A

In Postman, you create a new request, enter the API endpoint URL, add any necessary headers and request body, then send the request. Postman displays the response, allowing you to verify its correctness and optionally add tests for automated validation

19
Q

What are the advantages of selenium?

A

Selenium-cross browsing comparability
-open source
-works across different platforms - supports multiple programming languages

20
Q

What are some advantages of maven build?

A

Maven automates dependency management by downloading and adding necessary libraries for a project, reducing manual effort and ensuring consistent builds across machines.

21
Q

At your current position how many automation test do you run per week?

A

The number of automation tests run per week varies based on project size, complexity, code changes frequency, test coverage needs. It could range from thousands to fewer tests per week, depending on project specifics and organizational priorities.

22
Q

What are the most common request methods in postman and what do they mean?

A

GET-retrieve data

POST-submit data

PUT-update data

DELETE-delete data

23
Q

What is the ci/cd pipeline?

A

CI/CD (Continuous Integration/Continuous Delivery) pipeline is a practice where code changes are automatically built, tested, and deployed to production, ensuring rapid and reliable software delivery.

CI/CD is a methodology we use in software deployment in it we streamline software deployment by automating code integration and delivery, ensuring smooth updates across environments through a pipeline of automated stages, including compilation, testing, and deployment.

24
Q

What’s the difference between verification and validation?

A

Verify: Ensures that the product meets specified requirements.
Validate: Ensures that the product meets the customer’s needs and expectations.

25
Q

What’s the difference between verification and validation?

A

Verify: Ensures that the product meets specified requirements.
Validate: Ensures that the product meets the customer’s needs and expectations.

26
Q

As a QA how do you use automation testing in a CICD pipeline

A

In a CI/CD pipeline, QA integrates automation testing to validate software changes automatically at various stages (e.g., unit, integration, regression tests). This ensures faster feedback on code quality and accelerates the delivery of reliable software.without manual intervention