[Python] In the Pytest framework how can I call one testcase method in another testcase method...

Discussão em 'Python' iniciado por Stack, Abril 29, 2025.

  1. Stack

    Stack Membro Participativo

    I have created a class Test_Login that have two test cases/methods test_Login and test_Logout.

    enter image description here

    Here is the conftest.py file for the code.

    enter image description here

    I'm calling the function test_Login in test_Logout.The test_Login testcase is working fine, but on calling it in the test_Logout I'm getting this error.

    enter image description here

    I'm unable to find the solution.

    PS. It's my first time using stackoverflow. Please ask me if I didn't mention something.

    Continue reading...

Compartilhe esta Página