Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7573825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:16:49+00:00 2026-05-30T16:16:49+00:00

I have 3 test cases i.e. 1 2 3. How will i give priority

  • 0

I have 3 test cases i.e. 1 2 3. How will i give priority as 2 1 3 while executing maven command.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:16:50+00:00Added an answer on May 30, 2026 at 4:16 pm

    I assume you want to do it because you need some prerequisition prior the test can be run. You can do it by @Before Annotation prior the actual testcase, or you can call other tests from the test method.

    Say, testClient() test will test and verify that new client can be added to the system. Then you can do this:

    @Test 
    public void testWithdrawal(){
     testClient(); // i need client existing before the test can be run
     // ... do something else
    }
    

    In that case you have assured that prerequisites are fullfilled and dont have to worry much about the testcases order

    EDIT

    I think I understand your needs, because I am in quite similar situation. How I solved it:

    For create I have special class, which can create me a data and return needed data. So, i have something like:

    @Test
    public void testShare(){
    CreateTests create = new CreateTests; //This will just initialize the object
    create.testCreate(); // this method can contain steps needed to create
    String justCreatedEntity = create.getEntity(); // just example how you can use the just created entity in further tests
    
    }
    

    And my class to solve the create is something like this

    public class CreateTests{
      private static String entity; //static because i dont want it to be flushed when test ends
    
     public void testCreate() throws Exception{
    
        WebDriverBackedSelenium selenium = new WebDriverBackedSelenium(driver, "baseURL");
        selenium.... // All the selenium stuff
         setEntity(selenium.getText("id=mainForm.createdentity"));
     }
    
     public void setEntity(String ent){
      this.entity = ent;
     }
    
     public String getEntity(){
      return entity;
     }
    

    Its just an outline – but basically, I have these “crucial” entities as standalone objects, called by the test class. Inside test, i verify everything throgh getters. Like:

    Assert.assertNotNull(create.getAuctionID(),"New Entity is NULL!" );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some test cases. The test cases rely on data which takes time
Suppose I have several small test cases. Easy enough to setup and easy enough
I have this test case def setUp(self): self.user = User.objects.create(username=tauri, password='gaul') def test_loginin_student_control_panel(self): c
I have a Selenium test case that enters dates into a date selector made
today I have coded a test case for my application, to see how transactions
I have a Boost unit test case which causes the object under test to
I have a simple unit test case (extensive question here ) on a configuration
I have recorded a very simple test case Using the Selenium IDE integrated with
This is a minimal test case of some code that I actually have. It
I have been suggested to use should:rise in my test case to test for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.