Categories
5G Network
Agile
Amazon EC2
Android
Angular
Ansible
Arduino
Artificial Intelligence
Augmented Reality
AWS
Azure
Big Data
Blockchain
BootStrap
Cache Teachniques
Cassandra
Commercial Insurance
C#
C++
Cloud
CD
CI
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
DevOps
ECMAScript
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Gradle
Hadoop
HBase
HDFS
Hibernate
Hive
HTML
Image Processing
IOT
JavaScript
Java
Jenkins
Jira
JUnit
Kibana
Linux
Machine Learning
MangoDB
MVC
NGINX
Onsen UI
Oracle
PHP
Python
QTP
R Language
Regression Analysis
React JS
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
SOAP UI
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
Vue.js
Home
Recent Q&A
Feedback
Ask a Question
How to set test case priority in TestNG?
Home
>
Testing
>
How to set test case priority in TestNG?
Dec 9, 2019
in
Testing
Q: How to set test case priority in TestNG?
#testng-priority
1
Answer
0
votes
Dec 9, 2019
Below code helps you to understand how to set test case priority in TestNG.
1
2
3
4
5
6
7
8
9
10
11
12
13
package TestNG;
import org.testng.annotations.*;
public class SettingPriority {
@Test(priority=0)
public void method1() {
}
@Test(priority=1)
public void method2() {
}
@Test(priority=2)
public void method3() {
}
}
Test Execution Sequence:
1
2
3
Method1
Method2
Method3
Click here to read more about Loan/Mortgage
Click here to read more about Insurance
Facebook
Twitter
LinkedIn
Related questions
+1
vote
Q: How to set test case priority in TestNG?
Aug 22, 2019
in
Selenium
#selenium-for-load-testing
selenium-bot-detection
selenium-for-ios
ios-selenium
automated-visual-testing-
selenium
load-testing-selenium
python-selenium
selenium-online-training-videos
learning-selenium
selenium-syllabus
selenium-tools-for-testing
selenium-element
0
votes
Q: How do you define a format of writing a good test case?
Nov 13, 2020
in
Testing
#test-case
0
votes
Q: How to skip a method or a code block in TestNG?
Dec 9, 2019
in
Testing
#code-block
0
votes
Q: What is a good test case?
Nov 13, 2020
in
Testing
#good-test-case
0
votes
Q: What is a test case?
Dec 6, 2019
in
Testing
#test-case
+1
vote
Q: How to run a group of test cases using TestNG?
Aug 22, 2019
in
Selenium
#selenium-for-load-testing
selenium-bot-detection
selenium-for-ios
ios-selenium
automated-visual-testing-
selenium
load-testing-selenium
python-selenium
selenium-online-training-videos
learning-selenium
selenium-syllabus
selenium-tools-for-testing
selenium-element
...