Posts: 42
Threads: 17
Joined: Mar 2012
Reputation:
0
05-03-2012, 06:14 PM
Hi All,
I have one application which requires many user credentials. I am planning to save it in excel sheet and pass those at run time. Please help me in how to write a QTP script which will read username and password columns and pass it to the application.
Looking forward to hear from u all... Thanks!!
Regards
QTP learner
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
05-04-2012, 10:14 AM
Hi,
The easiest way to do is to load the external sheet during run time in ur data table and use data table to insert the username and password for the same.
Let me know in case of any further help.
Regards,
Sankalp
Posts: 42
Threads: 17
Joined: Mar 2012
Reputation:
0
05-04-2012, 11:15 AM
Hi Sankalp,
How to do this with descriptive programming?? I need to learn that too..Pls help..
Regards
QTP learner
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
05-04-2012, 12:10 PM
Hi,
Data table import/export is different from Descriptive programing, if u want to implement DP u can use it in assigning the username and password but for handling external excel file DP is not the correct approach, and to learn DP u can surf through this site only and its an easy and interesting topic.
Let me know if I can help u more.
Regards,
Sankalp
Posts: 42
Threads: 17
Joined: Mar 2012
Reputation:
0
05-04-2012, 02:08 PM
Hi,
Thanks a lot.. sure I will come bak if I am struck anywhere...Thanks Again
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
05-24-2012, 11:43 AM
Hi Guys,
I know I am late but always it's good habit to use the ADODB connection to read the values from excel files so that we can read the data from different kinds of excel files( .xls, .xlsm, .xlsx.....). Please let me know if you need any further information how to use the ADODB connection and read the data, which will save lot of time and resources.
Thanks,
SUpputuri
Posts: 42
Threads: 17
Joined: Mar 2012
Reputation:
0
05-24-2012, 12:19 PM
Hi,
Thnks a lot for ur reply.
Can u explain in detail with an example so that it would be more easy for us to understand?
Thanks
QTPLearner