TestNg.xml explained
The TestNg.xml file is a is a configuration file that is used by the TestNG framework to define, pass parameters to test methods and run tests that are defined in test suites inside the xml file.
TestNg gives us the option to include packages, classes or individual test methods in the test suite defined.
Let`s see how is created and how can we use the TestNG.xml
Go to your project folder in your IDE , right click and choose New File

Name the file testNg.xml and press Finish

You will now see a new file called testNg.xml in your project folder.
Put the following code snipped into the file :
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd" >
<suite name="My Suite" verbose="1" >
<test name="First Test" >
<classes>
<class name="test.testExample" />
</classes>
</test>
</suite>
Please note that test from test.testExample is the package name and the testExample is the class name.
You can change them to match your package name and test class name.
What we have in this xml now is a suite defined.
The suite is defined uisng the ‘suite’ tag and it is named “My Suite”
<suite name="My Suite" verbose="1" >
Then we have the ‘test’ tag. Please note that this is the tag that i mentioned on when we spoked about the BeforeTest/AfterTest annotation.
The name of the test is given by the ‘name’ attribute and in our case is “First Tests”
<test name="First Test" >
Next we have the ‘class’ tag which contains the class that we want to run. The format is in which is written is ‘packageName.className’ in our example ‘test.testExample’
<class name="test.testExample" />
Now let`s see how we can run it. We have the option tu run it either via terminal or by using the IDE (Eclipse in our case)
To run it from IDE, you will have to right-click the file in the project folder and select Run As -TestNg suite

Now, after we run it, you will notice a new folder appears in your project folder. This folder is named ‘test-output’ and it contains a HTML report of your run.

If you expand this folder you will find the HTML report as a file called “index.html”

Opening this file you will see the report of your run.

Pingback: buy generic cialis online
Pingback: zoloft erectile dysfunction
Pingback: metronidazole milk
Pingback: how quickly does cymbalta work
Pingback: lexapro and seroquel
Pingback: price of escitalopram 20 mg
Pingback: does keflex treat strep throat
Pingback: how long is fluoxetine in your system
Pingback: sildenafil in india online
Pingback: cephalexin vs cefazolin
Pingback: gabapentin klonopin
Pingback: duloxetine hcl 20mg ec cap
Pingback: ciprofloxacin 500mg tablets
Pingback: is cephalexin the same as amoxicillin
Pingback: bactrim for dogs
Pingback: bactrim dosage 800/160 for uti
Pingback: can i drink alcohol with amoxicillin
Pingback: cost of neurontin without insurance
Pingback: flexeril dosing
Pingback: flomax for women with kidney stones
Pingback: rybelsus vs contrave
Pingback: diclofenac over the counter
Pingback: antibiotic augmentin
Pingback: diltiazem hcl side effects
Pingback: how long does it take for effexor to work
Pingback: ezetimibe epocrates
Pingback: citalopram indications
Pingback: hyzaar vs cozaar
Pingback: ddavp for incontinence
Pingback: depakote vs lithium
Pingback: amitriptyline hcl 10 mg
Pingback: aripiprazole other names
Pingback: allopurinol dose
Pingback: 325 mg aspirin
Pingback: buspar for depression
Pingback: how long does it take for celebrex to start working
Pingback: bupropion xl weight loss reviews
Pingback: ashwagandha when to take
Pingback: what is baclofen used for
Pingback: augmentin medscape
Pingback: switching from celexa to lexapro
Pingback: pms-repaglinide 2mg
Pingback: semaglutide cost
Pingback: remeron for elderly
Pingback: actos escolares.com
Pingback: side effects of protonix
Pingback: robaxin methocarbamol
Pingback: acarbose china
Pingback: is abilify safe during pregnancy
Pingback: is tizanidine a benzo
Pingback: venlafaxine immediate release vs extended release
Pingback: prescription free voltaren gel
Pingback: tamsulosin empty stomach
Pingback: ivermectin oral
Pingback: sitagliptin side effects pancreatitis
Pingback: spironolactone zonder recept kopen
Pingback: synthroid sulfa
Pingback: vardenafil vs tadalafil vs sildenafil
Pingback: cialis online pills
Pingback: levitra order online
Pingback: percocet in mexican pharmacy
Pingback: pharmacy customer care cialis
Pingback: where to buy levitra online no prescription
Pingback: cialis tadalafil 20 mg bula
Pingback: sildenafil and tadalafil
Pingback: ivermectin oral 0 8
Pingback: stromectol pills
Pingback: generic viagra canada pharmacy
Pingback: vardenafil dosis
Pingback: cost of ivermectin 3mg tablets
Pingback: buy sildenafil 200mg
Pingback: stromectol ivermectin 3 mg
Pingback: vardenafil tablets 20 mg
Pingback: tadalafil dosage for ed
Pingback: what is tadalafil 20 mg
Pingback: ivermectin 0.5
Pingback: ivermectin 15 mg
Pingback: doxycycline monohydrate 100 mg tablet
Pingback: cephalexin sinus infection
Pingback: maximum dose of gabapentin in 24 hours
Pingback: ampicillin brands in india
Pingback: does metformin cause weight loss
Pingback: lisinopril used for
Pingback: amoxicillin 500mg dosage
Pingback: what are the side effects of trazodone
Pingback: what not to take with lyrica
Pingback: is provigil habit forming
Pingback: ciprofloxacin hydrochloride ophthalmic solution
Pingback: does valacyclovir work for cold sores
Pingback: cipro vs keflex
Pingback: vardenafil 40 mg tablets
Pingback: percocet pharmacy
Pingback: buy usa generic levitra pills
Pingback: does viagra make you bigger
Pingback: how long does it take for tadalafil to work
Pingback: sildenafil with alcohol reddit
Pingback: blue chew sildenafil
Pingback: sildenafil 100mg review
Pingback: sildenafil daily dosage
Pingback: sertraline and sildenafil together reddit
Pingback: fda approved online pharmacy
Pingback: buy levitra online cheap
Pingback: is cialis a controlled substance
Pingback: is cialis the same as tadalafil
Pingback: how to take levitra
Pingback: generic levitra 20mg
Pingback: cheapest pharmacy viagra
Pingback: sildenafil last longer
Pingback: 10mg levitra buy
Pingback: tadalafil duration
Pingback: online pharmacy no prescription ultram
Pingback: online pharmacy coupon
Pingback: sildenafil controlled substance
Pingback: new at your publix pharmacy free lisinopril
Pingback: what is the difference between cialis and viagra
Pingback: levitra vardenafil 10mg
Pingback: sildenafil side effects blood pressure
Pingback: how long does tadalafil 10mg last
Pingback: pharmacy that sells rohypnol
Pingback: how long does it take for tadalafil to take effect
Pingback: simvastatin kroger pharmacy
Pingback: buy online pharmacy uk
Pingback: tadalafil lower blood pressure
Pingback: vardenafil 20
Pingback: 10 mg tadalafil
Pingback: tadalafil drug class
Pingback: phentermine pharmacy biz
Pingback: my 24 hour pharmacy online
Pingback: etodolac is used for
Pingback: normal dosage of gabapentin for nerve pain
Pingback: sulfasalazine side effects heartbeat
Pingback: medicamento motrin retard
Pingback: tegretol l.p 400 mg
Pingback: celecoxib long term
Pingback: ibuprofen tegen hoest
Pingback: phentermine gabapentin
Pingback: cymbalta vs celebrex
Pingback: carbamazepine nausea
Pingback: elavil for migraines dosage
Pingback: uc flare on imuran
Pingback: mobic psychiatric side effects
Pingback: piroxicam durante el embarazo
Pingback: baclofen rezeptfrei preisvergleich
Pingback: sumatriptan ulcerative colitis
Pingback: azathioprine taken with prednisone
Pingback: what are the side effects of taking meloxicam
Pingback: maxalt coupon card
Pingback: get toradol no prescription
Pingback: st.pauls artane fc
Pingback: periactin fda
Pingback: can i buy ketorolac without insurance
Pingback: cyproheptadine hydrochloride with tricholine citrate syrup uses
Pingback: what is tizanidine medicine
Pingback: how much does zanaflex sell for on the street