From the below lines of code how many test cases will get executed from test suite?

import unittest
from TestCases.TestCase1 import Login 
from TestCases.TestCase2 import SignUp
if __name__ == "__main__":  
    unittest.main()
   
    tc1=unittest.TestLoader().loadTestsFromTestCase(Login)
    tc2=unittest.TestLoader().loadTestsFromTestCase(SignUp)
    tc3=unittest.TestLoader().loadTestsFromTestCase(Login)
   
    test_suite = unittest.TestSuite([tc1,tc3])  
    unittest.TextTestRunner(verbosity=1).run(test_suite)

Login executes only once
Login execute twice
Throws run time exception
SignUp and Login will get executed once
Verified Answer
Correct Option - b

To get all Infosys Certified Selenium with Python Automation Tester Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram