Automation QA Testing Course Content

Java Coding Programs

 


1. Reverse a String:
Write a Java program to reverse a given string.

2. Find the Largest Element in an Array:
Find and print the largest element in an array.

3. Check for Palindrome:
Determine if a given string is a palindrome (reads the same backward as forward).

4. Factorial Calculation:
Write a function to calculate the factorial of a number.

5. Fibonacci Series:
Generate the first n numbers in the Fibonacci sequence.

6. Check for Prime Number:
Write a program to check if a given number is prime.

7. String Anagrams:
Determine if two strings are anagrams of each other.

8. Array Sorting:
Implement sorting algorithms like bubble sort, merge sort, or quicksort.

9. Binary Search:
Implement a binary search algorithm to find an element in a sorted array.

10. Duplicate Elements in an Array:
Find and print duplicate elements in an array.

11. Linked List Reversal:
Reverse a singly-linked list.

12. Matrix Operations:
Perform matrix operations like addition, multiplication, or transpose.

13. Implement a Stack:
Create a stack data structure and implement basic operations (push, pop).

14. Implement a Queue:
Create a queue data structure and implement basic operations (enqueue, dequeue).

15. Inheritance and Polymorphism:
Implement a class hierarchy with inheritance and demonstrate polymorphism.

16. Exception Handling:
Write code that demonstrates the use of try-catch blocks to handle exceptions.

17. File I/O:
Read from and write to a file using Java's file I/O capabilities.

18. Multithreading:
Create a simple multi threaded program and demonstrate thread synchronization.

19. Lambda Expressions:
Use lambda expressions to implement functional interfaces.

20. Recursive Algorithms:
Solve a problem using recursion, such as computing the factorial or Fibonacci sequence.

General QA InterviewQuestions

 


1)First and foremost question—- Tell me about yourself
2)Where have you implemented OOPS concepts in your automation framework?
3)A situation will be given and they will ask you to tell the high level scenarios which you can think of.
4)Another similar type of question would be asked where acceptance criteria is given and some conditions are given , in this case make sure explain the test cases by considering( positive, negative and a non functional test case).
5)Say you are assigned a new feature how do you do story pointing ? ( consider manual and automation testing here)
6) As a QE how does your day look like?
7)What is your role in Agile activities? (Like in planning,retrospective meetings, grooming etc)
8)Now say a page is broken or some feature is broken how do you debug?
9)Say you have raised a bug and you know it’s an important bug but the developer does not agree, how will you bring the developer on the same page or convince the dev?


QA Automation Practice WebSites

 

Top Playground Platforms for QA Automation Practice:

1)the-internet.herokuapp: https://lnkd.in/dF6SEMxb

2)Ultestingplayground:https://lnkd.in/d68AqPkb

3) The Playground:https://lnkd.in/dak57wGZ

4)Demo QA: https://demoqa.com/

5) Selenium Test Pages:https://lnkd.in/dHcHytYH

6) LetCode:https://letcode.in/test

7) UltimateQA:https://lnkd.in/dVkefCqW

8) Selectors Hub Practice Page:https://lnkd.in/dsA9JdSn

9) WebDriver University:https://lnkd.in/dhZ6H4Sy

Rest Assured Interview Questions


Common Rest Assured Interview Questions for a QE:


1)Difference between Path and Query Parameters with an example
2)How to send a GET request using Rest Assured?
3)How to log response in Rest Assured only in the case of an error.
4)Explain different ways of extracting a single field from a response body.[like using response, JSONPath,XMLPath] and also they will give you the response of a request and ask you to extract the response of a particular field.
5)How to mask header information in API testing using Rest Assured?
6)How to download a file using rest assured?
7)How do you handle form parameters and multipart parameters[uploading media file]?
8)They will give you an end to end scenario and ask how will you write the rest assured code for that [ they are trying to understand how well can you do the API chaining here , you can just explain also]
9)What import statement will you use for Rest Assured to work?
10)How to check that a specific item is present in a collection using Rest Assured?[we can use Matchers here]
11)What are the common exceptions you encounter in Rest Assured?
12)Explain the rest Assured framework you wrote in your previous org?
13)How do you handle data in Rest Assured? [POJO, Excel,config file,HashMaps]
14)What is the use of ResponseSpecification in Rest Assured?
15)How do you handle authentication and authorization in Rest Assured tests?[basic, oauth,digest,custom]
16)What are the common pitfalls or challenges you have faced while using Rest Assured, and how did you overcome them?
17)What is the difference between given(), when(), and then() methods in Rest Assured and explain with an example.
18)How do you handle cookies in Rest Assured tests?
19)How can you handle timeouts and retries in Rest Assured tests?
20)Reporting in Rest Assured.
21)How do you enable parallel execution of Rest Assured tests? [TestNG,XML]
22)How do you verify the status code of an HTTP response using Rest Assured?
23)How do you handle dynamic status codes or scenarios where the status code may change between test runs?
24)How can you handle dynamic data or parameters in Rest Assured requests?

25)Difference between serialization and deserialization and explain using code



REST API Vs. GraphQL


REST API Vs. GraphQL



When it comes to API design, REST and GraphQL each have their own strengths and weaknesses.

REST
- Uses standard HTTP methods like GET, POST, PUT, DELETE for CRUD operations.
- Works well when you need simple, uniform interfaces between separate services/applications.
- Caching strategies are straightforward to implement.
- The downside is it may require multiple roundtrips to assemble related data from separate endpoints.

GraphQL
- Provides a single endpoint for clients to query for precisely the data they need.
- Clients specify the exact fields required in nested queries, and the server returns optimized payloads containing just those fields.
- Supports Mutations for modifying data and Subscriptions for real-time notifications.
- Great for aggregating data from multiple sources and works well with rapidly evolving frontend requirements.
- However, it shifts complexity to the client side and can allow abusive queries if not properly safeguarded
- Caching strategies can be more complicated than REST.

The best choice between REST and GraphQL depends on the specific requirements of the application and development team. GraphQL is a good fit for complex or frequently changing frontend needs, while REST suits applications where simple and consistent contracts are preferred.