Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AnnotationTransformer - Class in testUtils
-
TestNG annotation transformer to set a custom retry analyzer.
- AnnotationTransformer() - Constructor for class testUtils.AnnotationTransformer
- assertEquals(T, T, String) - Static method in class testUtils.Assertion
-
Asserts that two values are equal and logs the result.
- Assertion - Class in testUtils
-
Utility class for assertions with logging using Log4j2.
- Assertion() - Constructor for class testUtils.Assertion
- assertNotNull(Object, String) - Static method in class testUtils.Assertion
-
Asserts that value is NOT NULL and logs the result.
B
- BaseTest - Class in tests
-
Base test class for API tests, providing setup and teardown logic.
- BaseTest() - Constructor for class tests.BaseTest
- beforeTest() - Method in class tests.BaseTest
-
Runs before each test, sets up thread context.
C
- collectTestResults(IResultMap) - Method in class testUtils.TestResultsReporter
-
Processes and collects test results from a TestNG result map.
- comment() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns the value of the
comment
record component. - comment() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns the value of the
comment
record component. - createBookBeforeDeleteBookTest() - Method in class tests.TS04_DeleteBook
-
Creates a book before running delete book tests.
- createBookBeforeUpdateBookTest() - Method in class tests.TS03_UpdateBook
-
Creates a book before running update book tests.
- createBooksBeforeGetBookTest() - Method in class tests.TS02_GetBook
-
Creates books before running get book tests.
D
- describeTo(Description) - Method in class testUtils.LoggingMatcher
-
Describes the matcher to the given description.
- durationInMs() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns the value of the
durationInMs
record component. - durationInMs() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns the value of the
durationInMs
record component.
E
- equals(Object) - Method in record class testUtils.TestResultsRecords.TestCaseInfo
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class testUtils.TestResultsRecords.TestPlanSuite
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class testUtils.TestResultsRecords.TestResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class testUtils.TestResultsRecords.TestResultReport
-
Indicates whether some other object is "equal to" this one.
- errorMessage() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns the value of the
errorMessage
record component. - errorMessage() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns the value of the
errorMessage
record component.
G
- generateReport(List<XmlSuite>, List<ISuite>, String) - Method in class testUtils.TestResultsReporter
-
Generates the test results report by processing all test suites and their results.
- getInvalidBookID() - Method in class tests.TS02_GetBook
H
- hashCode() - Method in record class testUtils.TestResultsRecords.TestCaseInfo
-
Returns a hash code value for this object.
- hashCode() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class testUtils.TestResultsRecords.TestPlanSuite
-
Returns a hash code value for this object.
- hashCode() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class testUtils.TestResultsRecords.TestResultReport
-
Returns a hash code value for this object.
I
- id() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns the value of the
id
record component. - iterationDetails() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns the value of the
iterationDetails
record component.
L
- log(Logger, Matcher<? super T>) - Static method in class testUtils.LoggingMatcher
-
Factory method to create a LoggingMatcher.
- logger - Variable in class tests.BaseTest
- LoggingMatcher<T> - Class in testUtils
-
A Hamcrest matcher that logs assertion results using Log4j2.
- LoggingMatcher(Logger, Matcher<? super T>) - Constructor for class testUtils.LoggingMatcher
-
Constructs a LoggingMatcher.
M
- matchesSafely(T) - Method in class testUtils.LoggingMatcher
-
Evaluates the matcher and logs the result.
- MAX_RETRY_COUNT - Static variable in class tests.BaseTest
O
- onTestFailure(ITestResult) - Method in class testUtils.TestResultLoggerListener
-
Called when a test method fails.
- onTestSkipped(ITestResult) - Method in class testUtils.TestResultLoggerListener
-
Called when a test method is skipped.
- onTestStart(ITestResult) - Method in class testUtils.TestResultLoggerListener
-
Called when a test method starts.
- onTestSuccess(ITestResult) - Method in class testUtils.TestResultLoggerListener
-
Called when a test method passes.
- outcome() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns the value of the
outcome
record component. - outcome() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns the value of the
outcome
record component.
R
- resetBooksAfterSuite() - Method in class tests.BaseTest
-
Resets the books after the test suite completes.
- retry(ITestResult) - Method in class testUtils.RetryAnalyzer
-
Retries the test if the status code is 429 (Too Many Requests) and retry count is not exceeded.
- RetryAnalyzer - Class in testUtils
-
Retry analyzer for TestNG tests to handle HTTP 429 responses.
- RetryAnalyzer() - Constructor for class testUtils.RetryAnalyzer
- retryRequest(Supplier<Response>) - Method in class tests.BaseTest
-
Retries a request if HTTP 429 is received, up to MAX_RETRY_COUNT.
S
- setup(Method) - Method in class tests.BaseTest
-
Runs before each test method, sets up thread context.
- setUpSuite() - Method in class tests.BaseTest
-
Sets up the test suite with base URI, path, and filters.
T
- teardown() - Method in class tests.BaseTest
-
Runs after each test method, clears thread context.
- testCaseId() - Method in record class testUtils.TestResultsRecords.TestCaseInfo
-
Returns the value of the
testCaseId
record component. - TestCaseInfo(String) - Constructor for record class testUtils.TestResultsRecords.TestCaseInfo
-
Creates an instance of a
TestCaseInfo
record class. - testCases() - Method in record class testUtils.TestResultsRecords.TestPlanSuite
-
Returns the value of the
testCases
record component. - TestIterationResult(int, String, String, Long, String) - Constructor for record class testUtils.TestResultsRecords.TestIterationResult
-
Creates an instance of a
TestIterationResult
record class. - testPlanName() - Method in record class testUtils.TestResultsRecords.TestPlanSuite
-
Returns the value of the
testPlanName
record component. - testPlanName() - Method in record class testUtils.TestResultsRecords.TestResultReport
-
Returns the value of the
testPlanName
record component. - TestPlanSuite(String, String, Map<String, TestResultsRecords.TestCaseInfo>) - Constructor for record class testUtils.TestResultsRecords.TestPlanSuite
-
Creates an instance of a
TestPlanSuite
record class. - TestResult(String, String, Long, String) - Constructor for record class testUtils.TestResultsRecords.TestResult
-
Constructor for single test execution (no iterations).
- TestResult(String, String, Long, String, List<TestResultsRecords.TestIterationResult>) - Constructor for record class testUtils.TestResultsRecords.TestResult
-
Creates an instance of a
TestResult
record class. - TestResultLoggerListener - Class in testUtils
-
TestNG listener that logs test execution events using Log4j2.
- TestResultLoggerListener() - Constructor for class testUtils.TestResultLoggerListener
- TestResultReport(String, String, Map<String, TestResultsRecords.TestResult>) - Constructor for record class testUtils.TestResultsRecords.TestResultReport
-
Creates an instance of a
TestResultReport
record class. - testResults() - Method in record class testUtils.TestResultsRecords.TestResultReport
-
Returns the value of the
testResults
record component. - TestResultsRecords - Class in testUtils
-
Java records
- TestResultsRecords() - Constructor for class testUtils.TestResultsRecords
- TestResultsRecords.TestCaseInfo - Record Class in testUtils
-
Represents a test case info with testcaseId.
- TestResultsRecords.TestIterationResult - Record Class in testUtils
-
Represents a single test iteration result.
- TestResultsRecords.TestPlanSuite - Record Class in testUtils
-
Represents a suite of test cases within a test plan.
- TestResultsRecords.TestResult - Record Class in testUtils
-
Represents the complete test result for a test case.
- TestResultsRecords.TestResultReport - Record Class in testUtils
-
Container for all test results.
- TestResultsReporter - Class in testUtils
-
Custom TestNG reporter that generates structured JSON reports for test execution results.
- TestResultsReporter() - Constructor for class testUtils.TestResultsReporter
- tests - package tests
- testShouldCreateBookWhenAuthorIsDifferentForSameBook() - Method in class tests.TS01_CreateBook
-
Should create a book when author is different for the same book.
- testShouldCreateBookWhenTitleAndAuthorAreValid() - Method in class tests.TS01_CreateBook
-
Should create a book when title and author are valid.
- testShouldCreateBookWhenTitleIsDifferentForSameAuthor() - Method in class tests.TS01_CreateBook
-
Should create a book when title is different for the same author.
- testShouldCreateBookWithJsonStringifyWhenTitleAndAuthorAreValid() - Method in class tests.TS01_CreateBook
-
Should create a book using JsonStringify when title and author are valid.
- testShouldDeleteBookWhenBookIdIsValid() - Method in class tests.TS04_DeleteBook
-
Should delete the book when book ID is valid.
- testShouldNotReturnBookWhenBookIdIsInvalidString(Object) - Method in class tests.TS02_GetBook
-
Should not return a book when book ID is an invalid string.
- testShouldNotReturnBookWhenBookIdNotExists() - Method in class tests.TS02_GetBook
-
Should not return a book when book ID does not exist.
- testShouldRejectBookCreationWithClientProvidedId() - Method in class tests.TS01_CreateBook
-
Should reject book creation when client provides an ID.
- testShouldRejectBookWhenAuthorIsMissing() - Method in class tests.TS01_CreateBook
-
Should reject book creation when author is missing.
- testShouldRejectBookWhenTitleIsMissing() - Method in class tests.TS01_CreateBook
-
Should reject book creation when title is missing.
- testShouldRejectBookWithMissingTitleAndAuthor() - Method in class tests.TS01_CreateBook
-
Should reject book creation with missing title and author.
- testShouldRejectDuplicateBookCreation() - Method in class tests.TS01_CreateBook
-
Should reject duplicate book creation.
- testShouldReturn400WhenDifferentBookIdIsGivenInBody() - Method in class tests.TS03_UpdateBook
-
Should return 400 when a different book ID is given in the body.
- testShouldReturn401WhenNoAuthIsProvidedOnUpdateBook() - Method in class tests.TS03_UpdateBook
-
Should return 401 when no auth is provided on update book.
- testShouldReturn401WhenNoAuthTokenProvided() - Method in class tests.TS01_CreateBook
-
Should return 401 when no auth token is provided.
- testShouldReturn401WhenNoAuthTokenProvidedOnDelete() - Method in class tests.TS04_DeleteBook
-
Should return 401 when no auth token is provided on delete.
- testShouldReturn403WhenUserAuthTokenIsProvidedOnDelete() - Method in class tests.TS04_DeleteBook
-
Should return 403 when user auth token is provided on delete.
- testShouldReturn404WhenBookIsAlreadyDeletedOrNotExists() - Method in class tests.TS04_DeleteBook
-
Should return 404 when the book is already deleted or does not exist.
- testShouldReturn404WhenBookSearchWithoutAuthorAndTitle() - Method in class tests.TS02_GetBook
-
Should return 404 when book search is without author and title.
- testShouldReturn404WhenBookWithIdIsNotExists() - Method in class tests.TS03_UpdateBook
-
Should return 404 when book with ID does not exist.
- testShouldReturnAllBooksWhenBookIdIsEmpty() - Method in class tests.TS02_GetBook
-
Should return all books when book ID is empty.
- testShouldReturnBooksByLimit() - Method in class tests.TS02_GetBook
-
Should return books by limit.
- testShouldReturnBooksByLimitAndPage() - Method in class tests.TS02_GetBook
-
Should return books by limit and page.
- testShouldReturnBooksByPageNumber() - Method in class tests.TS02_GetBook
-
Should return books by page number.
- testShouldReturnBooksContainsAuthor() - Method in class tests.TS02_GetBook
-
Should return books containing the author.
- testShouldReturnBooksContainsTitle() - Method in class tests.TS02_GetBook
-
Should return books containing the title.
- testShouldReturnBooksContainsTitleAndAuthor() - Method in class tests.TS02_GetBook
-
Should return books containing both title and author.
- testShouldReturnBooksExcludingLastLimitOnNegativeLimit() - Method in class tests.TS02_GetBook
-
Should return books excluding last limit on negative limit.
- testShouldReturnBooksForDefaultPage1() - Method in class tests.TS02_GetBook
-
Should return books for default page 1.
- testShouldReturnNoBooksIfPageNumberIsNotInRange() - Method in class tests.TS02_GetBook
-
Should return no books if page number is not in range.
- testShouldReturnNoBooksOnNegativePage() - Method in class tests.TS02_GetBook
-
Should return no books on negative page.
- testShouldReturnNoBooksWhenBookWithAuthorNotExists() - Method in class tests.TS02_GetBook
-
Should return no books when book with author does not exist.
- testShouldReturnNoBooksWhenBookWithTitleAndAuthorNotExists() - Method in class tests.TS02_GetBook
-
Should return no books when book with title and author does not exist.
- testShouldReturnNoBooksWhenBookWithTitleNotExists() - Method in class tests.TS02_GetBook
-
Should return no books when book with title does not exist.
- testShouldReturnSingleBookByID() - Method in class tests.TS02_GetBook
-
Should return a single book by ID.
- testShouldReturnSingleBookWithTitleAndAuthor() - Method in class tests.TS02_GetBook
-
Should return a single book with title and author.
- testShouldUpdateBookAuthor() - Method in class tests.TS03_UpdateBook
-
Should update the author of a book.
- testShouldUpdateBookTitle() - Method in class tests.TS03_UpdateBook
-
Should update the title of a book.
- testShouldUpdateBookWhenSameBookIdIsGivenInBody() - Method in class tests.TS03_UpdateBook
-
Should update the book when the same book ID is given in the body.
- testSuiteName() - Method in record class testUtils.TestResultsRecords.TestPlanSuite
-
Returns the value of the
testSuiteName
record component. - testSuiteName() - Method in record class testUtils.TestResultsRecords.TestResultReport
-
Returns the value of the
testSuiteName
record component. - testUtils - package testUtils
- toString() - Method in record class testUtils.TestResultsRecords.TestCaseInfo
-
Returns a string representation of this record class.
- toString() - Method in record class testUtils.TestResultsRecords.TestIterationResult
-
Returns a string representation of this record class.
- toString() - Method in record class testUtils.TestResultsRecords.TestPlanSuite
-
Returns a string representation of this record class.
- toString() - Method in record class testUtils.TestResultsRecords.TestResult
-
Returns a string representation of this record class.
- toString() - Method in record class testUtils.TestResultsRecords.TestResultReport
-
Returns a string representation of this record class.
- transform(ITestAnnotation, Class, Constructor, Method) - Method in class testUtils.AnnotationTransformer
-
Sets the custom retry analyzer for TestNG tests if not already set.
- TS01_CreateBook - Class in tests
-
Test cases for creating books via the API.
- TS01_CreateBook() - Constructor for class tests.TS01_CreateBook
- TS02_GetBook - Class in tests
-
Test cases for retrieving books via the API.
- TS02_GetBook() - Constructor for class tests.TS02_GetBook
- TS03_UpdateBook - Class in tests
-
Test cases for updating books via the API.
- TS03_UpdateBook() - Constructor for class tests.TS03_UpdateBook
- TS04_DeleteBook - Class in tests
-
Test cases for deleting books via the API.
- TS04_DeleteBook() - Constructor for class tests.TS04_DeleteBook
U
- USER_ADMIN_TOKEN - Static variable in class tests.BaseTest
- USER_AUTH_TOKEN - Static variable in class tests.BaseTest
W
- withIterationResult(TestResultsRecords.TestIterationResult) - Method in record class testUtils.TestResultsRecords.TestResult
-
Creates a new TestResult with an additional iteration.
All Classes and Interfaces|All Packages|Constant Field Values