Cov txheej txheem:

Kuv yuav tsim ib daim ntawv qhia TestNG hauv Excel li cas?
Kuv yuav tsim ib daim ntawv qhia TestNG hauv Excel li cas?

Video: Kuv yuav tsim ib daim ntawv qhia TestNG hauv Excel li cas?

Video: Kuv yuav tsim ib daim ntawv qhia TestNG hauv Excel li cas?
Video: Graphing with Python! Printing in Different Languages 2024, Hlis ntuj nqeg
Anonim

Ua raws li cov kauj ruam uas tau teev tseg rau kev tsim cov ntawv tshaj tawm excel customized siv TestNG:

  1. Kauj ruam 1: Tsim Ib pob 'ExcelResults' nyob rau hauv koj qhov Project.
  2. Kauj ruam 2: Tsim cov testcases rau automation xeem siv TestNg . (
  3. Kauj ruam 3: Tsim ib qho kev xeem .
  4. Kauj ruam 4: Tam sim no Tsim ib chav 'ExcelGenerate' thiab paste cov cai hauv qab no:

Yog li ntawd, kuv yuav tsim ib daim ntawv qhia TestNG li cas?

TestNG Report Generation hauv Selenium WebDriver

  1. Lub TestNG yuav tsim cov ntawv qhia ua ntej.
  2. Thaum koj ua tiav testng. xml cov ntaub ntawv, thiab kho qhov project. Koj yuav tau txais cov ntawv xeem-tso tawm hauv daim nplaub tshev ntawd.
  3. Txoj nyem rau ntawm emailable-report. html thiab xaiv qhov kev xaiv. Qhib nrog lub web browser.

Tsis tas li ntawd, TestNG puas tuaj yeem tso tawm los ntawm kab hais kom ua? Kev ua xeem . xml file via kab hais kom ua tso cai rau cov neeg siv los khiav ntau yam xeem xml cov ntaub ntawv ib txhij. xml suite los ntawm cov lus txib , peb yuav tsum sau peb qhov project code. Peb ua tau nrhiav tus lej sau los ntawm dab noj hnub hauv qab lub npe "bin" hauv qhov sib txuas java project.

Qhov thib ob, Kuv yuav ua li cas thiaj tsim tau ib daim ntawv qhia hauv selenium?

Tsim cov ntaub ntawv ReportNG hauv Selenium WebDriver

  1. KAUJ RUAM 1: Rub tawm thiab ntxiv cov ntaub ntawv xav tau Jar Hauv Txoj Haujlwm Txoj Kev Tsim.
  2. KAUJ RUAM 2: lov tes taw lub neej ntawd mloog ntawm TestNG.
  3. KAUJ RUAM 3: Ntxiv ReportNG mloog rau testng. xml file.
  4. KAUJ RUAM 4: Ua koj qhov kev xeem thiab saib cov ntaub ntawv ReportNG.

ExtentReports yog dab tsi?

ExtentReports yog lub tsev qiv ntawv tshaj tawm rau kev xeem automation rau. NET thiab Java. Nws tsim cov ncauj lus kom ntxaws thiab zoo nkauj HTML rau cov browsers niaj hnub. ExtentReports qhia cov ntawv xeem thiab cov ntsiab lus ntawm cov kauj ruam nrog rau cov dashboards, qhov system thiab ib puag ncig cov ntsiab lus rau kev soj ntsuam ceev ntawm koj qhov kev xeem.

Pom zoo: