Need help on TestNg Framework

15 views
Skip to first unread message

sita maram

unread,
Feb 13, 2012, 1:46:38 AM2/13/12
to seleniu...@googlegroups.com
Hi,

can any one Please help on TestNg framework, i developed one framework like testng with data driven framework, in that we are taking data from excel sheet,but my requirement demands to pass the data from flat files like .properties files and suggest me on testng listeners implementation.

--
Thanks and Regards,
M.Sitaramireddy.

kumar

unread,
Feb 13, 2012, 1:54:57 AM2/13/12
to seleniu...@googlegroups.com
Hi

Please check the URL this is user friendly process

http://testerinyou.blogspot.in/2010/10/how-to-do-data-driven-testing-using_26.html



Thanks
Swamy S

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.



--
Thanks&Regards
Kumara Swamy S
Cell :9849008954

Varun Menon

unread,
Feb 13, 2012, 8:37:34 AM2/13/12
to Selenium Users
It depends upon how you had developed your framework and how flexible
you had made it.
For ex. If you are using the @DataDrive command of testng and you are
providing the data to it in the form of object array. You just have to
change the said function to read data from .properties file and then
send it across to your test-case.
A sample of DataDrive in TestNg can be found on the following link:

http://blog.varunin.com/2010/10/dataprovider-in-testng.html

You can modify the code of the DataProvider method to fetch the data
from the type of file you want to be used in your test-case.

@Swamy - The link shared by you does not actually give a proper way of
doing a Data-driven testing. If we go by the approach mentioned in the
link, the tests will fail to execute in case any of the data gives you
a failure. Also in the reports you will get only one result even when
you are doing an execution for different type of data set.

Regards
Varun
http://blog.varunin.com

On Feb 13, 11:54 am, kumar <skswamy1...@gmail.com> wrote:
> Hi
>
> Please check the URL this is user friendly process
>
> http://testerinyou.blogspot.in/2010/10/how-to-do-data-driven-testing-...
>
> Thanks
> Swamy S
>
>
>
>
>
>
>
>
>
> On Mon, Feb 13, 2012 at 12:16 PM, sita maram <maram.a...@gmail.com> wrote:
> > Hi,
>
> > can any one Please help on TestNg framework, i developed one framework
> > like testng with data driven framework, in that we are taking data from
> > excel sheet,but my requirement demands to pass the data from flat files
> > like .properties files and suggest me on testng listeners implementation.
>
> > --
> > *Thanks and Regards,*
> > *M.Sitaramireddy.*
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Selenium Users" group.
> > To post to this group, send email to seleniu...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > selenium-user...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/selenium-users?hl=en.
>
> --
> *Thanks&Regards*
Reply all
Reply to author
Forward
0 new messages