How to configure number of test cases per thread

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to configure number of test cases per thread

lakshmi kalyani kapu
Suppose there are 500 test cases, which I want to select only 100 test cases per thread using 5 threads. How to configure this in Suite fileĀ 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to configure number of test cases per thread

SUBRAMANYESWARA RAO BHAVIRISETTY
Hi Lakshmi,

Hope you are asking about this. You need to give parallel="tests" and set the thread-count.

<suite name="Automation Suite" allow-return-values="true" verbose="1" parallel="tests" thread-count="2">
    <test name="Login Test cases 01" parallel="classes" thread-count="2">
        <parameter name="Operating_System" value="Windows 8"/>
        <parameter name="Browser_Name" value="Internet Explorer"/>
        <parameter name="Browser_Version" value="11"/>
        <parameter name="Base_URL" value="https://www.google.com"/>
        <classes>
            <class name="com.automation.tool.Automation_01"/>
            <class name="com.automation.tool.Automation_02"/>
        </classes>
    </test>
    <test name="Login Test cases 02" parallel="classes" thread-count="2">
        <parameter name="Operating_System" value="Windows XP"/>
        <parameter name="Browser_Name" value="Mozilla Firefox"/>
        <parameter name="Browser_Version" value="27"/>
        <parameter name="Base_URL" value="https://www.google.com"/>
        <classes>
            <class name="com.automation.tool.Automation_01"/>
            <class name="com.automation.tool.Automation_02"/>
        </classes>
    </test>
</suite>

Subramanyam

On Fri, Apr 28, 2017 at 2:03 PM, lakshmi kalyani kapu <[hidden email]> wrote:
Suppose there are 500 test cases, which I want to select only 100 test cases per thread using 5 threads. How to configure this in Suite fileĀ 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
Loading...