cancel
Showing results for 
Search instead for 
Did you mean: 

How to run single TestNG test through QA Complete?

Highlighted
Occasional Visitor

How to run single TestNG test through QA Complete?

Hi, 

I am using QA Complete for Test Management. I have created tests in the Test Library, now I want to integrate each test in the Test Library to automation. I am able to execute Test class with the maven checkbox checked, but I don't want to execute the entire class. I want to integrate tests in the test library to test functions in the test class.

 

For example, I have testname=sampleTest in my test class. I have a corresponding test with the name Sample Test in QA Complete in TestLibrary. After linking the Automation I want to run only the sampleTest test from the test class.

 

How to achieve this?

I am using maven. I want to do this with maven.

 

 

 

Tags (1)
1 REPLY 1
Highlighted
Senior Member

Re: How to run single TestNG test through QA Complete?

Have you looked at the documentation on assigning TestNG tests in QA Complete?

 

https://support.smartbear.com/qacomplete/docs/user/test-management/library/automated/automations/tes...

 

We have it running as follows on the automation tab of the Test Case:

Set your title and timeout per your discretion.

Agent = TestNG (Selenium)

Test Class = script.{YOUR_TEST_SCRIPT_NAME}

Check "Use Maven Project"

 

Url, UNC, or local path = file:///C:/Documents/Workspace_Selenium/{YOUR_PROJECT}

* This one will depend on where your automation is running. Our runs on a VM and this is the path on the VM.

New Here?
Join us and watch the welcome video:
Announcements