user3270693
user3270693

Reputation: 101

Not able to run selenium script through testng

I have written a simple script in selenium. I am using Testng. I created a xml file where I mentioned suit name and class name. Xml file code is as

<?xml version="1.0" encoding="UTF-8"?>

<suite name='Suit1' verbose="3" parallel="methods">
    <test name="Wiki">
        <classes>
            <class name="additional.wikipediaTEst"/>
        </classes>
    </test>
</suite>

Now when I try to run this by right clicking inside xml file, text box for selecting suite is disabled.

How this would be enable.

Upvotes: 0

Views: 232

Answers (1)

Sitam Jana
Sitam Jana

Reputation: 3129

You need to install TestNG Eclipse Plugin. It can be installed from Help -> Eclipse Marketplace -> Search for TestNG and Install. After install it will ask to restart Eclipse. After restart, you should see the option to run the testng xml file as TestNG.

Hope it helps!

Upvotes: 1

Related Questions