公司:#貝殼 #順豐
崗位:#自動(dòng)化測(cè)試工程師
關(guān)鍵字:#unittest框架 #自動(dòng)化測(cè)試框架 #測(cè)試執(zhí)行 一共有三種方式:
A、通過(guò)命令直接運(yùn)行整個(gè)測(cè)試模塊:python -m unittest test_module1 test_module1;
B、執(zhí)行某個(gè)模塊中的某個(gè)測(cè)試類:python -m unittest test_module1.TestClass;
C、執(zhí)行某個(gè)模塊中某個(gè)測(cè)試類下的某個(gè)測(cè)試方法:python -m unittest test_module1.TestClass.test_method;