How can I perform parameterization using TestNG?

Asked by Last Modified  

1 Answer

Follow 1
Answer

Please enter your answer

Professional Trainer

Create a java test class, say, ParameterizedTest1. java. Add test method parameterTest() to your test class. This method takes a string as input parameter. Add the annotation @Parameters("myName") to this method. The parameter would be passed a value from testng.
Comments

Related Questions

I want to post my availability to work as a freelancer for doing Software development or testing related work, or even technical content writing. How can I place myself on UrbanPro?
Hello, Good morning! I recommend following couple of options for you in order to showcase your skills and share your experience among others. 1. Build your strong profile over elance or freelance portal....
Nilambari
1 0
7
Is it necessary to know automation Testing always?
Answer of such kind of question always be diplomatic for all QA's. It's my personal opinion, automation is equally important as manual in current trends. Yes, important not necessary, now value of automation...
Test
What is Jfree chart and how It can be used?
JFreeChart is a free chart library for Java that can generate a wide variety of charts for use in applications, applets and servlets.
Hariprasad M.
I completed my graduation in 2017, now working as an HR Executive in a Consultancy. I want to move to IT Sector. Which course is best for me to learn and get success in life? Please Suggest me
Dear Kumar, My suggestion is to - become good in one programming language - preferably Java and one O/S preferably Linux. Be aware of Open Source systems. Try to identify the opportunities in your existing...
Kumar
Is manual testing and it's processes are enough to develop better carrier in QA? Please someone guide me, what exactly necessary for making good carrier in testing?
Yes, Manual testing and related process of QA is enough to start your carrier in good way.. Once you get famillier with basic manual testing then you can move to other testing like Automation or Performance Testing.
Vidya

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Puzzle: A man needs to cross a river in a canoe, with him, he has a bag of grain ..........
Puzzle:A man needs to cross a river in a canoe, with him, he has a bag of grain , a chicken and a fox . He can only carry one of three at a time. If he leaves the grain and the chicken , the chicken will...

Puzzle : There is a pond, and you have 2 container of 5 and 3 liters. You need to provide me 4 liters of water. How would you do that?
Puzzle : There is a pond, and you have 2 container of 5 and 3 liters. You need to provide me 4 liters of water. How would you do that.Note: You need to provide water to me out of those 2 containers, extra...

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

Testers are the headlight of the project.
A project is like a road trip. Some projects are simple and routine, like driving to the store in broad daylight. But most projects worth doing are more like driving a truck off-road, in the mountains,...

Samad Ansari

0 0
0

Software Development Life Cycle Methodologies.
In this, I'm going to explain types of Software Development Life Cycle methods In earlier days many organisations follows these model: 1. Waterfall Model 2. Prototype Model 3. Incremental Model 4....

Recommended Articles

A lot of students who look forward to build a career in IT are keen to know if Software Testing could be stepping stone for them. Software testing is processes by means quality of the software is tested and improved. It is primarily done to figure out the differences between expected output and the actual output in software...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for Software Testing classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you