Skip to main content

Posts

Showing posts from December, 2023

Pre conditions and Post conditions in Test Ng.

Pre conditions and PostConditions in Test Ng. Vision of Preconditions and Postconditions: 👉 Ensuring Test Isolation: By using preconditions and postconditions, you ensure that each test method is executed in isolation, with a clean and consistent state. 👉Promoting Reusability: Setup and teardown tasks defined in preconditions and postconditions can be reused across multiple test methods, promoting code reuse and reducing redundancy. 👉Maintainability: Clearly defined preconditions and postconditions enhance the maintainability of test code. Changes or additions to the setup and cleanup logic can be made centrally in these annotated methods. TestNG PreConditions and PostConditions flow.   Before Suite (once) Before Test (once for each <test> in the suite) Before Class (once for each class with test methods in the <test> ) Before Method (before each test method) Test method execution After Method (after each test method) After Class (after all test methods in ...

Headed Vs Headless Operation

  Headless Mode: Purpose: Headless mode refers to running the browser without a visible GUI. The browser operates in the background, and there is no actual browser window displayed. Benefits: Faster execution : Headless mode often performs faster than headed mode because it doesn't need to render the graphical user interface. This can be advantageous when running a large number of automated tests. Resource efficiency : Since there is no need to render the UI, headless mode typically consumes fewer system resources, making it more efficient, especially for running tests in environments with limited resources. Server-side and continuous integration : Headless mode is commonly used in server environments, continuous integration (CI) systems, or when running tests on servers where a graphical environment is not available. Headed Mode: Purpose: Headed mode refers to running the browser with a visible graphical user interface (GUI). You can see the browser window opening and performing a...

User Stories and Acceptance Criteria.

 How to develop and Document the Acceptance Criteria in an Agile Environment. Verify With 3C's: The Three Cs of a user story (Card, Conversation, Confirmation) include the acceptance criteria. Collaborate and confirm that all stakeholders have a shared understanding of the criteria during conversations and discussions. Link to User Stories: Clearly link each acceptance criterion to the corresponding user story. This helps in traceability and understanding the context in which the criteria apply. Collaborative Definition: Involve key stakeholders, including the product owner, development team, and sometimes end-users, in the discussion and definition of acceptance criteria. This ensures a shared understanding of what needs to be delivered. USER STORIES These are short, simple descriptions of a feature or functionality from an end-user perspective . Examples.1  User Stories: As a frequent traveller, I want to be able to convert currency so that I can quickly under...