Cov txheej txheem:

Kuv yuav paub li cas yog tias TestNG raug teeb tsa?
Kuv yuav paub li cas yog tias TestNG raug teeb tsa?

Video: Kuv yuav paub li cas yog tias TestNG raug teeb tsa?

Video: Kuv yuav paub li cas yog tias TestNG raug teeb tsa?
Video: Maiv Xis Xyooj Khaus Pim | Tub Siab Loj Xa Lus Rau Maiv Xis Xyooj 2024, Hlis ntuj nqeg
Anonim

Yuav ua li cas txheeb xyuas yog tias TestNG raug teeb tsa tiav

  1. Txheeb xyuas TestNG yog ntsia ntawm qhov rais saib qhov rais. Nkag mus rau cov ntawv qhia Window> Qhia Saib> Lwm yam. Nthuav Java folder hauv Show View window.
  2. Txheeb xyuas yog tias TestNG raug teeb tsa ua tiav los ntawm kev tsim cov chav kawm tshiab. Txoj nyem rau ntawm pob explorer saib hauv dab noj hnub IDE.

Yog li ntawd, koj yuav ntxiv TestNG li cas?

Muaj ob txoj hauv kev txhim kho TestNG hauv dab noj hnub

  1. Nyob rau hauv dab noj hnub, nyob rau sab saum toj ntawv qhia zaub mov bar, Nyob rau hauv Help Menu, Nyem rau "Nruab tshiab Software" nyob rau hauv pab qhov rais.
  2. Nkag mus rau qhov URL (https://beust.com/eclipse/) ntawm Ua Haujlwm Nrog teb thiab nyem rau ntawm "Ntxiv" khawm.
  3. Thaum koj nyem rau ntawm "Ntxiv", nws yuav tso saib qhov screen, Sau lub npe li "TestNG".

Tsis tas li ntawd, yuav ua li cas kuv yuav import ib lub thawv TestNG rau hauv dab noj hnub? Qhib dab noj hnub โ†’ right click ntawm qhov project thiab mus rau Properties โ†’ Tsim Txoj Kev โ†’ Configure Build Path thiab ntxiv cov xeem -6.8. jar hauv cov tsev qiv ntawv siv Add External Lub thawv khawm.

Ntawm no, TestNG plugin yog dab tsi?

TestNG Plugin . Cov TestNG plugin muab kev koom ua ke nrog cov neeg nyiam TestNG chav kuaj lub moj khaum. Qhov no plugin muab cov chav kawm StrutsTestCase uas muaj peev xwm subclassed rau cov kev xeem uas ua hauj lwm ntawm Struts 2 Cheebtsam.

Kuv yuav nruab TestNG offline li cas?

Nruab TestNG hauv dab noj hnub IDE ntawm offline Jar cov ntaub ntawv.

Kauj ruam ob:

  1. Mus rau hauv daim ntawv teev npe dab noj hnub thiab nrhiav "dropins" nplaub tshev muaj.
  2. Tsim ib daim ntawv tais ceev tseg hauv cov ntaub ntawv dropins thiab npe nws li "testng-eclipse-6.11". 6-> Loj version & 11-> Me version ntawm TestNG plugin.
  3. Extract lub "site_assembly.

Pom zoo: