Lub hom phiaj ntawm TestNG lub moj khaum yog dab tsi?
Lub hom phiaj ntawm TestNG lub moj khaum yog dab tsi?

Video: Lub hom phiaj ntawm TestNG lub moj khaum yog dab tsi?

Video: Lub hom phiaj ntawm TestNG lub moj khaum yog dab tsi?
Video: aib phij siab dawb by ntxiag hawj nkauj tawm tshiab 2020-2021 2024, Tej zaum
Anonim

Tus tsim tawm: Cédric Beust, pab pawg TestNG

Ib yam li ntawd, vim li cas peb yuav tsum siv TestNG lub moj khaum?

TestNG yog tsim tshwj xeeb los npog txhua hom kev xeem pawg xws li Unit, Functional testing, Integration testing, End-to-end etc. Siv TestNG lub moj khaum tso cai rau peb tsim cov ntawv xeem hauv ob hom HTML thiab XML. Siv ANT nrog TestNG , peb muaj peev xwm tsim primitive Kev xeem ceeb toom thiab.

Ib tug kuj yuav nug, siv TestNG mloog dab tsi? Mloog yog txhais raws li interface uas hloov lub neej ntawd TestNG cov tus cwj pwm. Raws li lub npe qhia Cov neeg mloog "Mloog" rau qhov xwm txheej uas tau teev tseg hauv tsab ntawv selenium thiab coj tus cwj pwm kom haum. Nws yog siv hauv selenium los ntawm kev siv Cov neeg mloog Interface.

Hais txog qhov no, kev siv TestNG hauv selenium yog dab tsi?

TestNG yog lub moj khaum kev xeem uas muaj peev xwm ua tau Selenium kev ntsuam xyuas yooj yim rau kev nkag siab thiab tsim cov ntawv ceeb toom uas yooj yim to taub. Lub ntsiab zoo ntawm TestNG tshaj JUnit yog cov hauv qab no. Cov lus piav qhia yooj yim dua siv thiab to taub. Cov ntawv xeem tuaj yeem muab faib ua pawg yooj yim dua.

TestNG thiab JUnit yog dab tsi?

Ob leeg Testng thiab Junit yog Cov Txheej Txheem Kev Ntsuas uas siv rau Kev Ntsuas Chav. TestNG zoo ib yam li JUnit . Ob peb ntxiv functionality ntxiv rau nws uas ua TestNG haib tshaj JUnit . TestNG yog ib lub moj khaum kuaj kev tshoov siab los ntawm JUnit thiab NUnit. Ntawm no yog lub rooj uas qhia tau hais tias cov yam ntxwv txhawb los ntawm JUnit thiab TestNG.

Pom zoo: