Tag Archives: testng.xml

Compare TestNG HTML report – TestNG xslt Reports

This slideshow requires JavaScript.

Advertisements

How to configure TestNG with testng.xml for Selenium?

We will make TestNG.xml for following Scenario

Test_Base.java
Login to WordPress
Logout from WordPress

Test_post.java
Add New post
Edit post
View post
Quick Edit post
Trash post

Test_Category.java
Add new Category
Edit Category
View Category
Delete Category
Quick Edit Category

Test_tag.java
Add new tag
Edit tag
View tag
Delete tag

Go to Eclipse

Select package in which we want to execute all classes using TestNG.xml

Create new file named testng.xml and add following code into it

 <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">

<suite name="Suite to test WordPress Post Tag Category">

<test name="testing Test_Base">
 <classes>
 <class name="testWordpress.Test_Base" ></class>
 </classes>
</test>

&nbsp;

<test name="testing post">
 <classes>
 <class name="testWordpress.Test_post" ></class>
 </classes>
</test>

<test name="testing Tag">
 <classes>
 <class name="testWordpress.Test_tag" ></class>
 </classes>
</test>

<test name="testing Category">
 <classes>
 <class name="testWordpress.Test_Category" ></class>
 </classes>
</test>

</suite>

Now we are Ready to RUN

select testng.xml and run it with testNG

Check Output in Eclipse console:

Login to wordpress
Click on post page of wordpress-------------
Verify testcase execution status from excel
 Testing Add New post
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
Edit post Testing
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
Quick Edit post testing
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
Trash post testing
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
View post testing
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Write Pass/Fail/Skip status to Excel / HTML report

Click on tag page of wordpress-------------
Verify testcase execution status from excel
 Testing Add new Tag
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing Delete Tag
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing Edit Tag
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing View Tag
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Write Pass/Fail/Skip status to Excel / HTML report

Click on Category page of wordpress-------------
Verify testcase execution status from excel
 Testing Add new Category
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing Delete Category
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing Edit Category
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing Quick Edit Category
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Verify testcase execution status from excel
 Testing View Category
Write Testcase Pass/Fail/Skip status to Excel / HTML report
Write Pass/Fail/Skip status to Excel / HTML report

Logout from wordpress

===============================================
Suite to test WordPress Post Tag Category
Total tests run: 14, Failures: 0, Skips: 0
===============================================

Check TestNG result window:

and at the end lets verify testNG HTML report

  1. Select Java project and refresh this project
  2. New folder test-output will added to java project
  3. open index.html file in web-browser

Pupunzi

For a better web

Tech

News and reviews from the world of gadgets, gear, apps and the web

VentureBeat

News About Tech, Money and Innovation

Digital Inspiration

Tips and tutorials around all things tech.

Thinkwareglobal's Blog

Just another WordPress.com weblog

Kenazari's Blog

Just another WordPress.com weblog

Richfowler1's Blog

Just another WordPress.com weblog

Romaicus's Blog

Just another WordPress.com weblog

botlaguduri

Just another WordPress.com site

chandanag89

Just another WordPress.com site

meghshetty

Just another WordPress.com site

digitalmediaexpert

digital media expert blog

Thinking in Silverlight

Silverlight/WPF/Windows 8 Store App

Different Journeys

Let's make life easier!

LAW RESOURCE INDIA

LEGAL RESOURCE CENTRE / COURT JUDGMENTS / LEGAL ARCHIVES

BookConnect

Promoting Indian language Books

Actively Lazy

Software, crafted with passion

SAPonPower

An ongoing discussion about SAP infrastructure

SAP Career

Your Career Mentor

hrsapcertification

Just another WordPress.com site

The secret product manager

Thoughts about product management, SUSE, Linux, ARM processors, Cloud, AIX, Power Systems, and other things that interest me

Sap Certification Material . Com

Quality store for sap software and courses

Simon Les Flex's Blog

SAP Process Integration Specialist - NOW WE CAN DO BETTER!

Oracle Technologies Primer

An Oracle Fusion Middleware and iPaaS blog!

Gilberto Holms

Java, Middleware, SOA Architecture Blog

The Skeleton

Java code skeletons, tips and pointers

J@n van Zoggel

integration, innovation & random technology stuff

The Pragmatic Integrator

Hints and tips from a pragmatic integration specialist

briskwalk

The pace of life..

Optimalbg's Blog

Just another WordPress.com site

IT Jobs in USA

Keep the track of this Blog if you are looking out for some good Opportunities to work in USA....

Referral Jobs | Right Place to Get a Job

Hurry you are one Click away to get a job - Fresher Jobs for 2012, 2013 fresher’s and also high paid jobs for well Experienced IT professionals on Referal jobs.

eccinternational.wordpress.com/

ISO Consulting | ISO 27001 | ISO 20000 | CMMI | BCM | GRI Sustainability Reporting & Assurance | eLearning | Trainings | Philippines

Michael Korn's Blog

Musings on Life, Career, Faith and Technology

WORKINGWITHQTP

Just another WordPress.com weblog

Topics

.Net Core, AspNetCore, Entity Framework, Entity Framework Core, AspNetIdentity, AspNetIdentityCore, Unit Test, WCF, Workflows

SQA and Testers Blog

Just another WordPress.com weblog

Expertqtp's Weblog

Just another WordPress.com weblog

Sai Chamarthi

Experienced Testing Professional

saxenavinay

A great WordPress.com site

Suresh4qtp's Blog

Just another WordPress.com site

jonah95hill

This WordPress.com site is the cat’s pajamas

It's always something...

Just another WordPress.com weblog

Faculty of Information Technology - Lê Ngọc Tiến

Be Yourself! Simplify Our Goals! Nothing is Impossible!

Anti-Malware Testing

Thoughts on security product testing past and present

Methods & Tools

Practical knowledge for the software developer, tester and project manager