Hello Sir,
I am G.Saritha.At present I am woring in a small company as a trainee in testing.I have only basic knowledge .
So please I am requesting u to help me .
1.I dont know how to enter the test casesin the excel sheet.
2.How to sent the defect to the TL
3.What are the sites useful to learn more aboout testing.
4.Is ISTQB certification (Foundation) suggestable or not to me as a beggner.
I have gone thru the site…it sounds interesting to work in descriptive programming in QTp can u help me that how should i go abt it i want to work in descriptive programming…
Hi,
You have given a very good view of QTP 9. Can you send some more details abt QTP 9 and object repository.
The Adv & DisAdv of QTP 9 over QTP8.2.
Will be eagerly waiting for your reply.
The details in the page are really good but if the steps r given for synnchonise,batch test,popup scenariors in mercury’s qtp would have been much better and if u can send the details on above mentions query to my mail id i would be great full to you
You can also read an environment variable to locate a folder where are located your vbs library files. It is working even in a Visual Studio Debugger. This should work in QTP.
For the VBScript Debugger in QTP, I have no solution.
If you are looking for a real object oriented language to implement your web tests with debugger, check out http://www.InCisif.net.
It supports C#, VB.NET and IronPython (record mode included). InCisif.net works with the different flavor of Visual Studio (Express).
Check their demos
Comment
by
Frederic Torres |
January 2, 2008
| Reply
This material is very very useful for me. Thanks a lot.
Hi Kuldeep your website is having very useful information to all. who are preparing for the testing tools. Thank you for giving this website to me. Please give the details of SAP also i want that one please kuldeep. Really i surprised for ur website.
hey guys one clarification required here there is no specific difference between sanity and smoke test. If you give one valid point that is enough.
its my suggestion only………
Aftr reading i m also getting confusion …… just 1 point is enogh…..
Dear kuldeep
I am a software tester in a company and is new in descriptive programming in QTP so can you refer me some documents or pdf for it..!
thanks
Kamal
This is among the best site i have visited which can definately help the testing job hunters.
i enjoy a lot to read the answer published in this site.
Thank you kuldeep
my question is that what is the diffrent b/w object oreinted and object based language?
and is java support call by ref or call by value?
plz replly
Comment
by
manjeet singh |
January 2, 2008
| Reply
[…] formatting the QTP results to display as part of the Web dashboard reports. QTP itself uses different style sheets to format its own xml test results, so one option is to tweak their style sheets to conform to the […]
the notes you are providng is well and sufficient and it is easily understanding and thanks to Mr.Kuladeep sir and Mr.Rakesh sir for providing this. will you provide me the functional testing on a web application,
Comment
by
Srinivas Kumar |
January 2, 2008
| Reply
It is a very concise and tresely written matter.It can come handy to any new tester or even the experienced one.
Hi,
Could you pls give me a link to practice(mock) exam for software Testing Foundation ISEB/ISTQB.I am due to sit for it in a week.
You may however please prepare one for me.
Any other relevant materials will be highly appreciated.
Thanks for help
rgs
Yemi
I need answers for these question please. i am new to testing industry.
i would appreciate .
thanks,
kavitha.
87) Explain some techniques for developing software components with respect to testability
88) Describe a past experience with implementing a test harness in the development of software
89)Have you ever worked with QA in developing test tools? Explain the participation Development should have with QA in leveraging such test tools for QA use.
This classification of test case type it’s very close to reality leaved by me. I do work in a Software Testin Factory with integrated tests and the optimal timing of writing system test cases described by Kuldeep is in agree with our day-by-day.
The only differences is that we participate of the aproval meetings to design specification, with gains to validation of this, contributing with the quality of final product.
Congratulations.
Hi,
We were glad to go through the website it was nice we would like to know informations about the script you have created a object for excelsheet and have used methods for that,
Set Excelone=CreateObject(”Excel.Application”)
Set ExcelSheet=CreateObject(”Excel.Sheet”)
we would like to know the information regarding methods of the “excel” object.
Regards,
Siva
Reply
Hi Siva,
Excel is an object of Excel application. Here i have created two object Excelone for excel application and ExcelSheet for excel sheet.
Excel Sheet object can be used for copy/paste the data in row/column. Excel Application object can be used for saving the record or creating a new file (File System Object).
Hi kuldeep,
this is nagesh what is AOM(automation object model)
when i created tests using qtp ofter saving the action
I want to run those prog using qtp only by dev a programe
plz help me out
Q 1: How/what to test the dynamic images?what is the script for this? Ans: You can test using image check point not sure about this.
Q 2: How to test the Tooltips in web Applications? Ans: below example
1. ‘ get the app object
2. Set appObj = Browser(“Welcome To Nexaweb”).Page(“Welcome To Nexaweb”).JavaApplet(“DefaultJvmDetector”).Object.getScriptObject()
3. ‘ get the buttons in the app
4. Set objButtons = appObj.findObjects(“//button”)
6. ‘ get the first button
7. Set buttonObj = objButtons.elementAt( 0 )
8.
9. ‘ perform mouse over to create tooltip
10. buttonObj.simulateMouseOver
11. ‘ verify that a tooltip is visible
12. if( appObj.isTooltipVisible() ) then
13. ‘ get the tooltip
14. Set tooltip = appObj.getTootlip()
15. ‘ check to see if this is a text tooltip as expected
16. if( tooltip.isTextTooltip() ) then
17. ‘ verify the background color, of the tooltip
18. Set bgColor = tooltip.getBackgroundColor()
19. color = bgColor.getHTMLString()
20. if( color “#FFFFE6″ )then
21. Reporter.ReportEvent micFail,”TextTooltip Background Color”, “Expected color #FFFFE6. Acutal is “+ color
22. else
23. Reporter.ReportEvent micPass,”TextTooltip Background Color”, “Color was as expected :”+color
24. End if
26. ‘ verify the text of the tooltip
27. text = tooltip.getTooltipText()
28. if( text “This is a button tooltip.”) then
29. Reporter.ReportEvent micFail,”TextTooltip”, “Expected text ‘This is a button tooltip.’. Acutal was “+text
30. else
31. Reporter.ReportEvent micPass,”TextTooltip”, “Got Expected text “+text
32. End if
33. Else
34. Reporter.ReportEvent micFail,”TextTooltip”, “Tooltip is not a text tooltip”
35. end if
36. Else
38. Reporter.ReportEvent micFail,”TextTooltip”, “No tooltip visible.”
39. end if
40. ‘ perform mouse exited to clear the tooltip
41. buttonObj.simulateMouseExited
42. ‘ get the second button
43. Set buttonObj = objButtons.elementAt( 1 )
44. ‘ perform mouse over to create tooltip
45. buttonObj.simulateMouseOver
46. Dim textArray
47. textArray = Array(“east”, “north”, “south”, “west”)
48. ‘ verify that a tooltip is visible
49. if( appObj.isTooltipVisible() ) then
50. Set tooltip = appObj.getTootlip()
51. numChildren = tooltip.getChildObjectCount()
52. For i = 0 to numChildren -1
53. ‘ get the label text
54. Set label = tooltip.getChildObjectAt( i )
55. text = label.getText()
56. ‘ get the expected value
57. checkText = textArray( i )
58. ‘ verify the text
59. if( text checkText ) then
60. errorString = “Expected label “+ CStr(i) + ” to be ” + checkText + ” actual value was ” + text
61. Reporter.ReportEvent micFail,”PopupTooltip”, errorString
62. Else
63. passString = “Label “+ CStr(i) + ” actual expected value ” + text
64. Reporter.ReportEvent micPass,”PopupTooltip”, passString
65. End if
66. Next
67. Else
68. Reporter.ReportEvent micFail,”PopupTooltip”, “No tooltip visible.”
69. end if
70. ‘ perform mouse exited to clear the tooltip
71. buttonObj.simulateMouseExited
Q 3: How to write the script for menu items using QTP8.2 Ans: below example
1. Set textFieldObj = Browser(“Welcome To Nexaweb”).Page(“Welcome To Nexaweb”).JavaApplet(“DefaultJvmDetector”).JavaObject(“TextField”).Object.getScriptObject()
2. Set menuBarObj = Browser(“Welcome To Nexaweb”).Page(“Welcome To Nexaweb”).JavaApplet(“DefaultJvmDetector”).JavaObject(“MenuBar”).Object.getScriptObject()
3. itemCount = menuBarObj.getMenuBarItemCount()
4. ‘verify the menu item text
5. if( itemCount 5 ) then
6. Reporter.ReportEvent micFail,”Menu Bar”, “Expected menu count to be 5. Acutal was “+ Cstr( itemCount )
7. else
8. Reporter.ReportEvent micPass,”Menu Bar”, “Got Expected menu count of “+ Cstr( itemCount )
9. End if
10.
11. ‘ get the first menu
12. Set menuObj = menuBarObj.getMenuBarItemAt( 0 )
13. ‘verify the menu text
14. text = menuObj.getText()
15. if( text “Menu 1″ ) then
16. Reporter.ReportEvent micFail,”MenuText”, “Expected text ‘Menu 1′. Acutal was “+text
17. else
18. Reporter.ReportEvent micPass,”Menu Text”, “Got Expected text “+text
19. End if
20. ‘ select the menu
21. Set popupMenu = menuObj.select()
22. ‘ get the first menu item of the popup
23. Set menuItemObj = popupMenu.getMenuItemAt( 0 )
24. ‘verify the menu item text
25. text = menuItemObj.getText()
26. if( text “Menu 1 MenuItem 1″ ) then
27. Reporter.ReportEvent micFail,”Menu Item Text”, “Expected text ‘Menu 1 MenuItem 1′. Acutal was “+text
28. else
29. Reporter.ReportEvent micPass,”Menu Item Text”, “Got Expected text “+text
30. End if
31. ‘ select the menu item to fire its onCommand
32. menuItemObj.select
33. ‘verify the text field was set correctly
34. text = textFieldObj.getText()
35. if( text “Menu 1 MenuItem 1″) then
36. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘Menu 1 MenuItem 1′. Acutal was “+text
37. else
38. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
39. End if
40. ‘ reselect the first menu
41. Set popupMenu = menuObj.select()
42. ‘ get the second menu item
43. Set menuItemObj = popupMenu.getMenuitemAt( 2 )
44. ‘verify the menu item text
45. text = menuItemObj.getText()
46. if( text “Menu 1 MenuItem 2″ ) then
47. Reporter.ReportEvent micFail,”Menu Item Text”, “Expected text ‘Menu 1 MenuItem 1′. Acutal was “+text
48. else
49. Reporter.ReportEvent micPass,”Menu Item Text”, “Got Expected text “+text
50. End if
51. ‘ select the menu item to fire its onCommand
52. menuItemObj.select
53. ‘verify the text field was set correctly
54. text = textFieldObj.getText()
55. if( text “Menu 1 MenuItem 2″) then
56. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ”Menu 1 MenuItem 2′. Acutal was “+text
57. else
58. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
59. End if
60. ‘ get the third menu item (second menu item is a separator)
61. Set menuObj = menuBarObj.getMenuBarItemAt( 2 )
62. ‘verify the menu text
63. text = menuObj.getText()
64. if( text “Menu 2″ ) then
65. Reporter.ReportEvent micFail,”MenuText”, “Expected text ‘Menu 2′. Acutal was “+text
66. else
67. Reporter.ReportEvent micPass,”Menu Text”, “Got Expected text “+text
68. End if
69. ‘ select the second menu
70. Set popupMenu = menuObj.select()
71. ‘ select the second menu item which is a submenu
72. Set subMenuObj = popupMenu.getMenuItemAt( 1 )
73. Set subPopupMenu = subMenuObj.select()
74. ‘ select the menu item of the sub menu
75. Set menuItemObj = subPopupMenu.getMenuItemAt( 0 )
76. menuItemObj.select
78. ‘verify the text field was set correctly
79. text = textFieldObj.getText()
80. if( text “Menu2 SubMenu MenuItem”) then
81. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘Menu2 SubMenu MenuItem’. Acutal was “+text
82. else
83. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
84. End if
85. ‘ select the fourth item of the menu bar (the third is a separator)
86. Set menuObj = menuBarObj.getMenuBarItemAt( 4 )
89. Set popupMenu = menuObj.select()
90. ‘ select the checkbox menu item
91. Set menuItemObj = popupMenu.getMenuitemAt( 1 )
92. menuItemObj.select
93. ‘verify the text field was set correctly
94. text = textFieldObj.getText()
95. if( text “CheckBox MenuItem State true”) then
96. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘CheckBox MenuItem State true’. Acutal was “+text
97. else
98. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
99. End if
100. Set popupMenu = menuObj.select()
111. Set menuItemObj = popupMenu.getMenuitemAt( 1 )
112. menuItemObj.select
113. ‘verify the text field was set correctly
114. text = textFieldObj.getText()
115. if( text “CheckBox MenuItem State false”) then
116. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘CheckBox MenuItem State false’. Acutal was “+text
117. else
118. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
119. End if
Hey, Just going through the demo in QTP. Ready to buy licenses but am having trouble getting answers from Mercury. Not the best customer service, at least pre-sales.
Can you tell me if there is a way to take an Output Value, taken from a page and copied into the table, and use this number in a next action?
The first half of my work is inputting data, then I have to take a reference number generated and enter it into a different system (both web based interfaces). Haven’t figured how to use the newly created table entries as a parameterized value in next action.
I have created one recovery scenario for the outlook pop up window which appers when try to send message through QTP scripting,But this scenario is not working.
Hi Kuldeep,
This site is very good and you have given so much information about testing.Now i am trying for a job in testing.I have some doubts in QTP.How to test a date field in QTP?Please reply me back to my mail id.
Thank you very much
what is a frame work in test automation perspective ?
how many types of frame works are there ?
which type of frame work is better in QTP ?
Which frame work is better to use to automate a web based application by using QTP 8.2 ?
i am expecting a good answer from you as soon as possible
plz reply to these with suitable answers for all my queries.
We are testing a Delphi application through Winrunner 8.2,we have a issue like we try to retrieve the value from the Delphi grid, if there is any value reflected
in the grid then no issue, if the grid is empty then while retrieving the value using tbl_get_cell_data it through a pop up “Winrunner “General Error””.
please give realtime script model of automations qtp
areu write discriptive program
Comment
by
srinivasarao |
January 21, 2008
| Reply
Hi,
In my application I have a tree view structured data. For example we have 10 nodes under each node we have so many sub nodes. Also, under this subnodes i have some more nodes. This expansion depends on the data we give. But the major parent 10 nodes are identified as wintreeview.
QTP was able to identify the parent node but unable to identify the subnodes. When tried spying the nodes and subnodes the properties and the values are seem to be same. I couldnt find any difference between it.
Is there any way to identify the subnodes. Have anybody come across as like this if so, let me know how you tried to rectify it.
Hi Kuldeep,
Read your blog.. I found it of a great help to me.
I need your help in learning QTP and clearing ISTQB exam.
I am learning QTP bt have many issues. Also,I have certain topics like statement coverage and branch coverage for if and while loops.
I am staying and working in gurgaon as a testing engineer.I want expertise in QTP. I only have some basic knowledge. Please tell me how to contact u regarding thins..through emails or phone?
Hope you can help me.
Thanks
hi kuldeep,
i want to know whether qtp can be used for mobile testing.if not then which tool is used. and what is the max no of values we can enter for parametarisation in the data table. is there any difference b\w data pool and parametarisation. . .
Hi Kuldeep sir, i recently visited this site, its really good
i have some problem with Mercury Winrunner 8.2
The problem is
. We have an application running in IE. We use winrunner 8.2 , but it is not recognizing the application window.
It recognizes as Class : object, MSW_CLASS : mic_unknown_class.
which we believe should be recognized as Class: Window and MSW_CLASS : html_frame.
This happens only to the application IE window. When we try to recognize a normal website (like google), it perfectly identifies as
Class: Window and MSW_CLASS : html_frame.
We have tried workarounds, like starting winrunner first and then the application. Also, we have loaded web-test add-in.
OS : Windows XP SP2,
IE : V6.0 SP2
Note: Same application can be recognized in Winrunner 7.5
No doubt this is superb site for people who are working on QTP.
I have one issue, i have to execute test scripts in batch and write the result in excel sheet, just pass and fail for each scrip.
Can u help me for the same.
And also how to save result file in qtp.
Hello Kuldeep, I an Junior Software Tester.
I am very new to LoadRunner and Performance Testing.
I want to know brief about Analysis section of LoadRunner. Excatly how we can proceed , which factors to be considered and how to report these analyzed factors.
Hi,
How to get ToolTip Text from each cell on a page. If this particular page has a JavaTable. I have gone through the ToolTip script given by you on this website but I was not able to interpret it and make it work for my application.
I would surely like to add a comment, this is a very good website. I liked your advanced QTP scripts . The code interpretation is very finely done.
Our sistuation : We have Test complete as of now and planning to move to Dotnet Technology, and thinking about buying QTP for the same(Cost is not a factor , but time is).I find its time consuming to automate using TestComplete on the delphi system.
I would appreciate if you can clarify the following queries:
1) Is QTP the best automation tool and easy to use on Dotnet based application?
2) Does QTP have a Delphi Add in to recognize Delphi based application.
Or do we need to restrict to winrunner for automating delphi based system.
This is the Script i generated for my Login Window. While running the Script i got error message like this.
“Cannot identify the object “komathi” (of class WinObject). Verify that this object’s properties match an object currently displayed in your application”.
But when im running the Login window for the Flight reservation is working fine.
Platform of my project is: VB.Net with Ms-SQL
ANything i want to Install for this im using QTP 8.2 version. Please help me.im waiting 4 ur valuable reply. If possible send ur suggestion to my Mail ID which i have mentioned Above
You need to select the vb add-in that appears in the add-in manager when you launch qtp. Because your project had developed in vb.net. Please chek it up an d let me know. I hope its should get executed.
Hi Kuldeep and Rakesh,
First of all thanks a million you people are doing a marvelous
job thanks for spreading your knowledge.
My suggestion/request for u pple is to start a page in ur blog where u pple answer the queries of all the pple coz through this we can gain lots of knowledge n learn different topics.
And also i have a Query plz answer this
I have four actions in my test script namely
Action1,Action2,Action3 and Action4
when i run the test script all the 4 Actions are executed but i want only Action1 and Action3 to be executed.
Eagerly waiting for ur reply.
Thanks alot…
hi kuldeep
nice working on qtp script
really it is useful for all
canu tell me the qtpscript for this
write the script for the web link to check whether it is broken link or not
How to upload screenshot of corresponding bugs in client bug tracking tool through QTP. Example i have 20 bugs and some bugs is having screenshot some not one by one i have to uploads sceenshot through QTP.
my script is not running its showing an error message message
“Some browsers will not display this page unless the response status code is 200″
for login action its runnning perfectly fine but for some module its displaying the error.Will you please help me to solve this issue and as per my knowledge script is pefectly fine as i executed the same script before without any issue,there must be some Load runner setting issue.
hi,
I really liked this site.I am facing an issue for quite sometime now.I am trying to automate Siebel 7.5 using QTP 9.5.The problem is that I am not being able to run a script as the MVGs and picklista re not opening.The issue is that if I open Qtp before Siebel these controls hang.I wanted to know how I can write a code for invoking these mvgs and picklists without having open it by clicking on the Siebel buttons.
Thanks a lot Sharma brothers. u hav reflected the real time concept in the web site.
But i hav a doubt in QTP 9.0 which i am using.
i am unable to write a script for loading an object repository file(like login.tsr). first i am creating a .tsr file using repository manager, but unable to load through scripting.
Pls don’t neglect this issue. try to send me a batter script regarding this problem
I have gone through the site… It sounds interesting and helpful to work in descriptive programming in QTP.
I just started working on QTP,So I want your help here.
My question is “How to deal with radio buttons?”.
Scenario: I have two radio button “Yes” and “No” on the page.
When I add them in Object Repository,it takes single radio button only. When add “Yes” radio button,it adds with the index value 1 and when add “No’ radio button,it replaces “Yes” radio button and changes its value to 2.
Please suggest how to deal with webradiogroup object
Comment
by
Aniruddha Yenaskar |
October 17, 2008
| Reply
Dim res,cmd,sql
Set Res=createobject(“adodb.recordset”)
Set Cmd=createobject(“adodb.command”)
Cmd.activeconnection=”Provider=SQLOLEDB.1;Password=;Persist Security Info=True;User ID=sa;Initial Catalog=pubs;Data Source=192.168.0.69″
Cmd.CommandType = 1
sql=”select emp_id,fname from dbo.employee”
Cmd.CommandText = sql
Set res = Cmd.Execute()
i=1
While not res.eof
logid = res(“emp_id”).value
logname=res(“fname”).value
print logid
print logname
i=i+1
res.movenext
wend
Set res = nothing
Set cmd.ActiveConnection = nothing
Set Cmd= nothing
‘————————————————————–
Set ExcelObj = CreateObject(“Excel.Application”)
aatype=”F:\templet.xls”
ExcelObj.Workbooks.Open(aatype)
Set NewSheet = ExcelObj.Sheets.Item(2)
Dim rs,sq,pkey
set conn=createobject(“adodb.connection”)
set rs=createobject(“adodb.recordset”)
set rs1=createobject(“adodb.recordset”)
conn.open= “Provider=OraOLEDB.Oracle.1;Password=*;Persist Security Info=True;User ID=*;SERVER=*;Data Source=*;DBQ=*;”
sql=”select * from table”
rs.open sql,conn
i=1
do while not rs.eof
values1=rs(“pkey”)
values2=rs(“name”)
NewSheet.Cells(i+1,1).Value =values1
NewSheet.Cells(i+1,2).Value =values2
i=i+1
rs.movenext
Loop
‘————————————————————–
ExcelObj.ActiveWorkbook.Saveas “F:\data.xls”
ExcelObj.Quit
Set ExcelObj = Nothing
rs.close
set rs=nothing
conn.close
set conn=nothing
‘————————————————————–
Dim Excel,ExcelSheet
Set Excelone=CreateObject(“Excel.Application”)
Set ExcelSheet=CreateObject(“Excel.Sheet”)
ExcelSheet.Application.visible=true
ExcelSheet.ActiveSheet.Cells(1,1).value=1
ExcelSheet.ActiveSheet.Cells(1,2).value=2
ExcelSheet.ActiveSheet.Cells(1,3).value=3
Excelone.Saveas “E:\tests.xls”
Excelone.quit
Set ExcelSheet=Nothing
‘————————————————————–
Set fs=CreateObject(“excel.application”)
fs.Visible=True
Set excelbook=fs.Workbooks.Add
Set excelsheet=excelbook.worksheets(1)
excelsheet.cells(1,1)=”??”
excelsheet.saveas “e:\1.xls”
excelsheet.application.quit
fs.Quit
‘————————————————————–
set fs=createobject(“excel.application”)
fs.visible=true
set excbook=fs.workbooks.open(“f:\1.xls”)
set excsheet=excbook.worksheet(1)
excsheet.cells(1,1).value=”Test”
excbook.save
fs.quit
‘————————————————————–
Dim qtApp ,pDefColl,pDef ,rtParams,rtParam
Set qtApp = CreateObject(“QuickTest.Application”)
qtApp.Launch
qtApp.Visible = True
qtApp.Open “C:\Test1″
Set pDefColl = qtApp.Test.ParameterDefinitions
cnt = pDefColl.Count
Indx = 1
While Indx <= cnt
Set pDef = pDefColl.Item(Indx)
Indx = Indx + 1
Wend
Set rtParams = pDefColl.GetParameters()
Set rtParam = rtParams.Item(“InParam1″)
rtParam.Value = “songfun”
qtApp.Test.Run , True, rtParams
MsgBox rtParams.Item(“OutParam1″).Value
‘————————————————————–
Dim a,b,c
Set a = createobject(“excel.application”)
a.visible = true
Set b = a.workbooks.add
Set c = b.worksheets(1)
c.cells(1,1) = “1″
c.cells(1,2) = “2″
c.cells(1,3) = “3″
c.saveas “e:\testtwo.xls”
c.application.quit
a.quit
‘————————————————————–
set fs=createobject(“excel.application”)
fs.visible=true
set excbook=fs.workbooks.open(“f:\1.xls”)
set excsheet=excbook.worksheet(1)
excsheet.cells(1,1).value=”Test1″
excbook.save
fs.quit
‘————————————————————–
Set alapp=createobject(“Excel.Application”)
alapp.application.visible=true
Set xlbook=alapp.workbooks.open(“e:\test.xls”)
Set xlSheet = xlBook.Worksheets(“Sheet1″)
count1=datatable.GetSheet(“Action1″).getrowcount
For i=1 to count1
alapp.cells(i,1)= datatable.GetSheet(“Action1″).getparameter(“Test1″).valuebyrow(i)
Next
xlSheet.saveas “e:\1.xls”
alapp.quit
Set excel=nothing
I would like to know about implement regular expression for window title which get to change every time with clicking on hyperlink displays new text on the title bar) and numeric value appearing on that hyperlink [inbox(6)]. What changes should be implemented in Expert View as well as Object Repository. Example:: Recording login process into yahoo.com till the opening of three to Four e-mails.
Implemented regular impression in Object repository and trying to run but every time run time error is appearing.
(alkaa.dugaal@gmail.com)
I want to create my own reports using descriptive programming. or want to change the formatting of the reports published through Reporter.ReportEvent.
How can i do that please guide.
Hi Kuldeep,
I don’t have much exposer on QTP but really ur sites sounds good for me. Could you please help me by resolving my few doubts:
1. Can we use QTP tool for performance testing
2. How can we do performance testing of Flex application using QTP.
3. I am able to get interact with flex app using qtp but won’t understand how do Ianalyse performance parameters of an flex app for performance testing.
Kindly reply me ASAP as I need urgently.
Looking fwd for ur reply…….
Hi Kuldeep,
I am new in QTP n don’t have much exposer in the same. But I want to do performance testing of Flex app using QTp. Could you please guide me how come I will be acheive this.
Look fwd for ur reply.
I need the solution urgently.
Actually i had gone through your site. Its really sounds good. But i have a question for you to ask. Is it possible to call from one vbs to another vbs.If so please send the code for the same.
This website is very good but hot to post a quirey into it?
my quirey is
HOW TO RETURN A VALUE FROM A FUNCTION & SHOULD BE PRINT IN MAIN TEST
‘This is function that will be there in your vbs file.
function add1(first,sec)
add1 = first + sec
end function
‘This is your main test
sum = add(5,10)
msgbox sum
Hello Sir,
I am G.Saritha.At present I am woring in a small company as a trainee in testing.I have only basic knowledge .
So please I am requesting u to help me .
1.I dont know how to enter the test casesin the excel sheet.
2.How to sent the defect to the TL
3.What are the sites useful to learn more aboout testing.
4.Is ISTQB certification (Foundation) suggestable or not to me as a beggner.
Please send me all details.
Thankyou in advance
Regards
G.Saritha
Hi Kuldeep,
I have gone thru the site…it sounds interesting to work in descriptive programming in QTp can u help me that how should i go abt it i want to work in descriptive programming…
Regards,
amol
9422501150
what is the script for connecting to ORCAL through QUICK TEST PROFESSIONAL PLZ REPLAY TO MY MAIL
AND YOUR WORK IS NICE FOR ALL TESTING PERSONS
Hi,
Can some body please suggest which management testing tool can be applicable for QTP 9.0/9.9 (Like Test Director For WinRunner)
Regards,
Gayatri
how to store .gui files and dat files in quality center
Hi,
You have given a very good view of QTP 9. Can you send some more details abt QTP 9 and object repository.
The Adv & DisAdv of QTP 9 over QTP8.2.
Will be eagerly waiting for your reply.
With Regards,
Pawan
the site was indeed useful..a very informative for a beginnner like me…thanks a million
how to select values from a weblist randomly…..??????if a weblist has 10 items how to select the 10 items randomly ?
Hey,
Thanks for the tutorial, It really helped!
Keep up the good job!
Hi,
The details in the page are really good but if the steps r given for synnchonise,batch test,popup scenariors in mercury’s qtp would have been much better and if u can send the details on above mentions query to my mail id i would be great full to you
How can we connect Database though Discriptive Programing in QTP 9.0
hay can u send the book for descriptive programing i am realy in need of it plese send it yaar
Hi
This site is having very good Information.
Anyone can go through this site.
But still need to add Automation tools and their s/w
bye
Kuldeep – Regarding the first limitation actually you can in VBScript implement the method Include “filename”.
See this link they have an example
http://www.visualbasicscript.com/m_29820/tm.htm
You can also read an environment variable to locate a folder where are located your vbs library files. It is working even in a Visual Studio Debugger. This should work in QTP.
For the VBScript Debugger in QTP, I have no solution.
If you are looking for a real object oriented language to implement your web tests with debugger, check out http://www.InCisif.net.
It supports C#, VB.NET and IronPython (record mode included). InCisif.net works with the different flavor of Visual Studio (Express).
Check their demos
This material is very very useful for me. Thanks a lot.
Hi Kuldeep your website is having very useful information to all. who are preparing for the testing tools. Thank you for giving this website to me. Please give the details of SAP also i want that one please kuldeep. Really i surprised for ur website.
hey guys one clarification required here there is no specific difference between sanity and smoke test. If you give one valid point that is enough.
its my suggestion only………
Aftr reading i m also getting confusion …… just 1 point is enogh…..
Dear kuldeep
I am a software tester in a company and is new in descriptive programming in QTP so can you refer me some documents or pdf for it..!
thanks
Kamal
Hi,
I cant find such usefull information for qtp on any other site.
Its realy nice.
Thanks again.
Rohit.
It is very much useful for those who are working on QTP
At Last one good site on testing….the topic articles listed are found to be good.
Appreciate if you can share few inputs in the following context…
Usage of OOPs in vbscript(QTP) with regard to the Input and output operations performed. You can share one example on I/O on editbox if possible.
Regards
Ravi Prasad
This is among the best site i have visited which can definately help the testing job hunters.
i enjoy a lot to read the answer published in this site.
Thank you kuldeep
my question is that what is the diffrent b/w object oreinted and object based language?
and is java support call by ref or call by value?
plz replly
[…] formatting the QTP results to display as part of the Web dashboard reports. QTP itself uses different style sheets to format its own xml test results, so one option is to tweak their style sheets to conform to the […]
the notes you are providng is well and sufficient and it is easily understanding and thanks to Mr.Kuladeep sir and Mr.Rakesh sir for providing this. will you provide me the functional testing on a web application,
It is a very concise and tresely written matter.It can come handy to any new tester or even the experienced one.
Hi,
Could you pls give me a link to practice(mock) exam for software Testing Foundation ISEB/ISTQB.I am due to sit for it in a week.
You may however please prepare one for me.
Any other relevant materials will be highly appreciated.
Thanks for help
rgs
Yemi
how to get number of links in web page using qtp
how to get number of text boxes using qtp
thanks to give valuable information regarding software testing
I need answers for these question please. i am new to testing industry.
i would appreciate .
thanks,
kavitha.
87) Explain some techniques for developing software components with respect to testability
88) Describe a past experience with implementing a test harness in the development of software
89)Have you ever worked with QA in developing test tools? Explain the participation Development should have with QA in leveraging such test tools for QA use.
77) What is an equivalence class?
hello sir,
fantastic work keep going….
regards,
deva
hello kuldeepse
your articles about testing are excellent…keep doing these kind of things forever,so that guys like us could understand..
with regards,
bharathiraja
Hey man thanks a ton for this website its A to Z in QTP ! really helped me to understand what QTP is all about .
thanks
Raghu
Its a good blog for the beginners.
Really very helpful
Thanks
Rajat Garg
QA Engg.
Intelligaia Technology.
Gud information about testing fundas!! Would like to know more about KR Testing Solutions
Thanks Kuldeepse.It would be helpful if you can send me articles on database testing as well as interview questions on manual and automated testing
This classification of test case type it’s very close to reality leaved by me. I do work in a Software Testin Factory with integrated tests and the optimal timing of writing system test cases described by Kuldeep is in agree with our day-by-day.
The only differences is that we participate of the aproval meetings to design specification, with gains to validation of this, contributing with the quality of final product.
Congratulations.
Hi,
We were glad to go through the website it was nice we would like to know informations about the script you have created a object for excelsheet and have used methods for that,
Set Excelone=CreateObject(”Excel.Application”)
Set ExcelSheet=CreateObject(”Excel.Sheet”)
we would like to know the information regarding methods of the “excel” object.
Regards,
Siva
Reply
Hi Siva,
Excel is an object of Excel application. Here i have created two object Excelone for excel application and ExcelSheet for excel sheet.
Excel Sheet object can be used for copy/paste the data in row/column.
Excel Application object can be used for saving the record or creating a new file (File System Object).
Regards,
Kuldeep
KR Testing Solutions.
Hi Kuldeep,
Have a look
http://qtpprofessionals.blogspot.com/
Hi kuldeep,
this is nagesh what is AOM(automation object model)
when i created tests using qtp ofter saving the action
I want to run those prog using qtp only by dev a programe
plz help me out
HI Kuldeep,
u developed such a good for both the beginners as well as experienced professionals.
Presently i am working with TestComplete tool and i need to know more about framework not thereotically.
If possible expalin with one example.
thanks in advance
and waiting for ur reply.
regards
-Prasad G
prasad.gali9@gmail.com
Hi Kuldeep,
can u please send the scripts for
1)How/what to test the dynamic images?what is the script for this?
2)How to test the Tooltips in web Applications?
3)How to write the script for menu items using QTP8.2
i would wait for your reply
Thanks & Regards
suresh
Q 1: How/what to test the dynamic images?what is the script for this?
Ans: You can test using image check point not sure about this.
Q 2: How to test the Tooltips in web Applications?
Ans: below example
1. ‘ get the app object
2. Set appObj = Browser(“Welcome To Nexaweb”).Page(“Welcome To Nexaweb”).JavaApplet(“DefaultJvmDetector”).Object.getScriptObject()
3. ‘ get the buttons in the app
4. Set objButtons = appObj.findObjects(“//button”)
6. ‘ get the first button
7. Set buttonObj = objButtons.elementAt( 0 )
8.
9. ‘ perform mouse over to create tooltip
10. buttonObj.simulateMouseOver
11. ‘ verify that a tooltip is visible
12. if( appObj.isTooltipVisible() ) then
13. ‘ get the tooltip
14. Set tooltip = appObj.getTootlip()
15. ‘ check to see if this is a text tooltip as expected
16. if( tooltip.isTextTooltip() ) then
17. ‘ verify the background color, of the tooltip
18. Set bgColor = tooltip.getBackgroundColor()
19. color = bgColor.getHTMLString()
20. if( color “#FFFFE6″ )then
21. Reporter.ReportEvent micFail,”TextTooltip Background Color”, “Expected color #FFFFE6. Acutal is “+ color
22. else
23. Reporter.ReportEvent micPass,”TextTooltip Background Color”, “Color was as expected :”+color
24. End if
26. ‘ verify the text of the tooltip
27. text = tooltip.getTooltipText()
28. if( text “This is a button tooltip.”) then
29. Reporter.ReportEvent micFail,”TextTooltip”, “Expected text ‘This is a button tooltip.’. Acutal was “+text
30. else
31. Reporter.ReportEvent micPass,”TextTooltip”, “Got Expected text “+text
32. End if
33. Else
34. Reporter.ReportEvent micFail,”TextTooltip”, “Tooltip is not a text tooltip”
35. end if
36. Else
38. Reporter.ReportEvent micFail,”TextTooltip”, “No tooltip visible.”
39. end if
40. ‘ perform mouse exited to clear the tooltip
41. buttonObj.simulateMouseExited
42. ‘ get the second button
43. Set buttonObj = objButtons.elementAt( 1 )
44. ‘ perform mouse over to create tooltip
45. buttonObj.simulateMouseOver
46. Dim textArray
47. textArray = Array(“east”, “north”, “south”, “west”)
48. ‘ verify that a tooltip is visible
49. if( appObj.isTooltipVisible() ) then
50. Set tooltip = appObj.getTootlip()
51. numChildren = tooltip.getChildObjectCount()
52. For i = 0 to numChildren -1
53. ‘ get the label text
54. Set label = tooltip.getChildObjectAt( i )
55. text = label.getText()
56. ‘ get the expected value
57. checkText = textArray( i )
58. ‘ verify the text
59. if( text checkText ) then
60. errorString = “Expected label “+ CStr(i) + ” to be ” + checkText + ” actual value was ” + text
61. Reporter.ReportEvent micFail,”PopupTooltip”, errorString
62. Else
63. passString = “Label “+ CStr(i) + ” actual expected value ” + text
64. Reporter.ReportEvent micPass,”PopupTooltip”, passString
65. End if
66. Next
67. Else
68. Reporter.ReportEvent micFail,”PopupTooltip”, “No tooltip visible.”
69. end if
70. ‘ perform mouse exited to clear the tooltip
71. buttonObj.simulateMouseExited
Q 3: How to write the script for menu items using QTP8.2
Ans: below example
1. Set textFieldObj = Browser(“Welcome To Nexaweb”).Page(“Welcome To Nexaweb”).JavaApplet(“DefaultJvmDetector”).JavaObject(“TextField”).Object.getScriptObject()
2. Set menuBarObj = Browser(“Welcome To Nexaweb”).Page(“Welcome To Nexaweb”).JavaApplet(“DefaultJvmDetector”).JavaObject(“MenuBar”).Object.getScriptObject()
3. itemCount = menuBarObj.getMenuBarItemCount()
4. ‘verify the menu item text
5. if( itemCount 5 ) then
6. Reporter.ReportEvent micFail,”Menu Bar”, “Expected menu count to be 5. Acutal was “+ Cstr( itemCount )
7. else
8. Reporter.ReportEvent micPass,”Menu Bar”, “Got Expected menu count of “+ Cstr( itemCount )
9. End if
10.
11. ‘ get the first menu
12. Set menuObj = menuBarObj.getMenuBarItemAt( 0 )
13. ‘verify the menu text
14. text = menuObj.getText()
15. if( text “Menu 1″ ) then
16. Reporter.ReportEvent micFail,”MenuText”, “Expected text ‘Menu 1′. Acutal was “+text
17. else
18. Reporter.ReportEvent micPass,”Menu Text”, “Got Expected text “+text
19. End if
20. ‘ select the menu
21. Set popupMenu = menuObj.select()
22. ‘ get the first menu item of the popup
23. Set menuItemObj = popupMenu.getMenuItemAt( 0 )
24. ‘verify the menu item text
25. text = menuItemObj.getText()
26. if( text “Menu 1 MenuItem 1″ ) then
27. Reporter.ReportEvent micFail,”Menu Item Text”, “Expected text ‘Menu 1 MenuItem 1′. Acutal was “+text
28. else
29. Reporter.ReportEvent micPass,”Menu Item Text”, “Got Expected text “+text
30. End if
31. ‘ select the menu item to fire its onCommand
32. menuItemObj.select
33. ‘verify the text field was set correctly
34. text = textFieldObj.getText()
35. if( text “Menu 1 MenuItem 1″) then
36. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘Menu 1 MenuItem 1′. Acutal was “+text
37. else
38. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
39. End if
40. ‘ reselect the first menu
41. Set popupMenu = menuObj.select()
42. ‘ get the second menu item
43. Set menuItemObj = popupMenu.getMenuitemAt( 2 )
44. ‘verify the menu item text
45. text = menuItemObj.getText()
46. if( text “Menu 1 MenuItem 2″ ) then
47. Reporter.ReportEvent micFail,”Menu Item Text”, “Expected text ‘Menu 1 MenuItem 1′. Acutal was “+text
48. else
49. Reporter.ReportEvent micPass,”Menu Item Text”, “Got Expected text “+text
50. End if
51. ‘ select the menu item to fire its onCommand
52. menuItemObj.select
53. ‘verify the text field was set correctly
54. text = textFieldObj.getText()
55. if( text “Menu 1 MenuItem 2″) then
56. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ”Menu 1 MenuItem 2′. Acutal was “+text
57. else
58. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
59. End if
60. ‘ get the third menu item (second menu item is a separator)
61. Set menuObj = menuBarObj.getMenuBarItemAt( 2 )
62. ‘verify the menu text
63. text = menuObj.getText()
64. if( text “Menu 2″ ) then
65. Reporter.ReportEvent micFail,”MenuText”, “Expected text ‘Menu 2′. Acutal was “+text
66. else
67. Reporter.ReportEvent micPass,”Menu Text”, “Got Expected text “+text
68. End if
69. ‘ select the second menu
70. Set popupMenu = menuObj.select()
71. ‘ select the second menu item which is a submenu
72. Set subMenuObj = popupMenu.getMenuItemAt( 1 )
73. Set subPopupMenu = subMenuObj.select()
74. ‘ select the menu item of the sub menu
75. Set menuItemObj = subPopupMenu.getMenuItemAt( 0 )
76. menuItemObj.select
78. ‘verify the text field was set correctly
79. text = textFieldObj.getText()
80. if( text “Menu2 SubMenu MenuItem”) then
81. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘Menu2 SubMenu MenuItem’. Acutal was “+text
82. else
83. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
84. End if
85. ‘ select the fourth item of the menu bar (the third is a separator)
86. Set menuObj = menuBarObj.getMenuBarItemAt( 4 )
89. Set popupMenu = menuObj.select()
90. ‘ select the checkbox menu item
91. Set menuItemObj = popupMenu.getMenuitemAt( 1 )
92. menuItemObj.select
93. ‘verify the text field was set correctly
94. text = textFieldObj.getText()
95. if( text “CheckBox MenuItem State true”) then
96. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘CheckBox MenuItem State true’. Acutal was “+text
97. else
98. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
99. End if
100. Set popupMenu = menuObj.select()
111. Set menuItemObj = popupMenu.getMenuitemAt( 1 )
112. menuItemObj.select
113. ‘verify the text field was set correctly
114. text = textFieldObj.getText()
115. if( text “CheckBox MenuItem State false”) then
116. Reporter.ReportEvent micFail,”TextField Text”, “Expected text ‘CheckBox MenuItem State false’. Acutal was “+text
117. else
118. Reporter.ReportEvent micPass,”TextField Text”, “Got Expected text “+text
119. End if
Hey, Just going through the demo in QTP. Ready to buy licenses but am having trouble getting answers from Mercury. Not the best customer service, at least pre-sales.
Can you tell me if there is a way to take an Output Value, taken from a page and copied into the table, and use this number in a next action?
The first half of my work is inputting data, then I have to take a reference number generated and enter it into a different system (both web based interfaces). Haven’t figured how to use the newly created table entries as a parameterized value in next action.
While I’m here. Is there no way to simulate a little load testing with QTP? I assume they want you to buy another software package for this purpose…
I have created one recovery scenario for the outlook pop up window which appers when try to send message through QTP scripting,But this scenario is not working.
Please give me the idea
Hi Kuldeep,
This site is very good and you have given so much information about testing.Now i am trying for a job in testing.I have some doubts in QTP.How to test a date field in QTP?Please reply me back to my mail id.
Thank you very much
Hi, Can u give some interview questions in QualityCenter
hi guys
what is a frame work in test automation perspective ?
how many types of frame works are there ?
which type of frame work is better in QTP ?
Which frame work is better to use to automate a web based application by using QTP 8.2 ?
i am expecting a good answer from you as soon as possible
plz reply to these with suitable answers for all my queries.
yours
satheesh
Hi Kuldeep,
We are testing a Delphi application through Winrunner 8.2,we have a issue like we try to retrieve the value from the Delphi grid, if there is any value reflected
in the grid then no issue, if the grid is empty then while retrieving the value using tbl_get_cell_data it through a pop up “Winrunner “General Error””.
Thanks and Regards,
Al Yasmin,
Hi Kuldeep,
We are planning to give cste exam,can you share any information about the preparation and the material.
Thank You,
Mary
please give realtime script model of automations qtp
areu write discriptive program
Hi,
In my application I have a tree view structured data. For example we have 10 nodes under each node we have so many sub nodes. Also, under this subnodes i have some more nodes. This expansion depends on the data we give. But the major parent 10 nodes are identified as wintreeview.
QTP was able to identify the parent node but unable to identify the subnodes. When tried spying the nodes and subnodes the properties and the values are seem to be same. I couldnt find any difference between it.
Is there any way to identify the subnodes. Have anybody come across as like this if so, let me know how you tried to rectify it.
Hi Kuldeep,
Read your blog.. I found it of a great help to me.
I need your help in learning QTP and clearing ISTQB exam.
I am learning QTP bt have many issues. Also,I have certain topics like statement coverage and branch coverage for if and while loops.
I am staying and working in gurgaon as a testing engineer.I want expertise in QTP. I only have some basic knowledge. Please tell me how to contact u regarding thins..through emails or phone?
Hope you can help me.
Thanks
hi kuldeep,
i want to know whether qtp can be used for mobile testing.if not then which tool is used. and what is the max no of values we can enter for parametarisation in the data table. is there any difference b\w data pool and parametarisation. . .
Hi Kuldeep sir, i recently visited this site, its really good
i have some problem with Mercury Winrunner 8.2
The problem is
. We have an application running in IE. We use winrunner 8.2 , but it is not recognizing the application window.
It recognizes as Class : object, MSW_CLASS : mic_unknown_class.
which we believe should be recognized as Class: Window and MSW_CLASS : html_frame.
This happens only to the application IE window. When we try to recognize a normal website (like google), it perfectly identifies as
Class: Window and MSW_CLASS : html_frame.
We have tried workarounds, like starting winrunner first and then the application. Also, we have loaded web-test add-in.
OS : Windows XP SP2,
IE : V6.0 SP2
Note: Same application can be recognized in Winrunner 7.5
Thabks®ards
subbu
hi,
i want to ask u about “how to add a checkboxes checkpoint, ie about checking on a web page for all the checkboxes”
thanks
Hello Kuldeep
I am learning QTP.Can you please answer to my following queries:
a) DIfference between QTP8.2 and QTP9.2
b) How can a user handle exceptions in QTP.
i really appreciate your efforts if you help me.
Thanks in advance…
Best Regards
Mannat
Hi Kuldeep,
Please tell me how to capture the timeout value of an application using QTP?
Poonam
Please tell me how to recognize the colors using QTP. is there any options are there or we need to use any functions??
Please send me the answer to my mail ID.
reply to me for any clarification…
Thanks,
Chinni
Hi Kuldeep,
No doubt this is superb site for people who are working on QTP.
I have one issue, i have to execute test scripts in batch and write the result in excel sheet, just pass and fail for each scrip.
Can u help me for the same.
And also how to save result file in qtp.
Thanks
i want correlation in loadrunner
Hello Kuldeep, I an Junior Software Tester.
I am very new to LoadRunner and Performance Testing.
I want to know brief about Analysis section of LoadRunner. Excatly how we can proceed , which factors to be considered and how to report these analyzed factors.
Can you help me for this.
Thanking you.
Hi,
How to get ToolTip Text from each cell on a page. If this particular page has a JavaTable. I have gone through the ToolTip script given by you on this website but I was not able to interpret it and make it work for my application.
I would surely like to add a comment, this is a very good website. I liked your advanced QTP scripts . The code interpretation is very finely done.
Hi All,
Our sistuation : We have Test complete as of now and planning to move to Dotnet Technology, and thinking about buying QTP for the same(Cost is not a factor , but time is).I find its time consuming to automate using TestComplete on the delphi system.
I would appreciate if you can clarify the following queries:
1) Is QTP the best automation tool and easy to use on Dotnet based application?
2) Does QTP have a Delphi Add in to recognize Delphi based application.
Or do we need to restrict to winrunner for automating delphi based system.
Regards,
Thejaswee
Hello sir,
Window(“Login”).WinObject(“komathi”).Type “komathi”
Window(“Login”).WinObject(“komathi”).Type micTab
Window(“Login”).WinObject(“divya”).Type “divya”
Window(“Login”).WinObject(“divya”).Type micTab
Window(“Login”).WinObject(“Admin”).Type micDwn
Window(“Login”).WinObject(“Admin”).Type micTab
Window(“Login”).WinObject(“Submit”).Type micReturn
Window(“Cine & TV Dancer’s and”).WinMenu(“Menu”).Select “Exit”
This is the Script i generated for my Login Window. While running the Script i got error message like this.
“Cannot identify the object “komathi” (of class WinObject). Verify that this object’s properties match an object currently displayed in your application”.
But when im running the Login window for the Flight reservation is working fine.
Platform of my project is: VB.Net with Ms-SQL
ANything i want to Install for this im using QTP 8.2 version. Please help me.im waiting 4 ur valuable reply. If possible send ur suggestion to my Mail ID which i have mentioned Above
Thanx in advance
savitha
Hi Savitha,
You need to select the vb add-in that appears in the add-in manager when you launch qtp. Because your project had developed in vb.net. Please chek it up an d let me know. I hope its should get executed.
Regards,
Chaitanya.
Hi Kuldeep,
How can we do email verification.
I want to check Email Subject line, From address,
and the content of the email……..
Hi Kuldeep and Rakesh,
First of all thanks a million you people are doing a marvelous
job thanks for spreading your knowledge.
My suggestion/request for u pple is to start a page in ur blog where u pple answer the queries of all the pple coz through this we can gain lots of knowledge n learn different topics.
And also i have a Query plz answer this
I have four actions in my test script namely
Action1,Action2,Action3 and Action4
when i run the test script all the 4 Actions are executed but i want only Action1 and Action3 to be executed.
Eagerly waiting for ur reply.
Thanks alot…
Hi Kuldeep and Rakesh,
Very nice information here.On that basic lot of QTP-DP queries are clear..
I am working on .net web application, In the User Module, we have a grid, displays all users of application.
Pagination is implemented to the grid and each page has 10 users.
I want to write a script to find a user in the grid(in any page) and delete/edit information.?
How to implement this functionality?
How to verify (Code) for the changing page navigation links?
e.g. –>
Navigation link now —-page 1
Navigation link later —-page 1 2 3 4
How to jump to the specific page when it is dynamically changing?
hi kuldeep
nice working on qtp script
really it is useful for all
canu tell me the qtpscript for this
write the script for the web link to check whether it is broken link or not
Your blog is very good-looking and informative!
Cool work!
Hi,
I am into functional testing (Silktest) but would like to learn Load Testing.
I would appreciate if you could help me in this endeavour.
Regards,
Rahul
1.How to compare two pdf files in qtp?
2.I have charts displayed in an webarea within an image in a web page.I am not able to uniquely identify the 2 webareas ,how do i verify the charts?
hi kuldeep,
can u provide ans for qtp qtns pls which u have given
How to upload screenshot of corresponding bugs in client bug tracking tool through QTP. Example i have 20 bugs and some bugs is having screenshot some not one by one i have to uploads sceenshot through QTP.
Please do needful for the same
How to upload sceenshot of the corresponding bugs
Please do needful for the same
Regards,
Parul
Hai to all,
This is vamsi working as a s/w engr in Hyd.
This web site is excellent.It is very useful for testing people.
Regards,
Vamsi,
vamsi.ekrishna@gmail.com
hi
u r answers r very useful …thanks a lot
i have on query..
can u explain me about data driver frame work in detail…
my script is not running its showing an error message message
“Some browsers will not display this page unless the response status code is 200″
for login action its runnning perfectly fine but for some module its displaying the error.Will you please help me to solve this issue and as per my knowledge script is pefectly fine as i executed the same script before without any issue,there must be some Load runner setting issue.
Dear Sir,
My application run from desktop .exe file but QTP does not usderstand and it generates an error.
I need your help…..
deven
hi,
I really liked this site.I am facing an issue for quite sometime now.I am trying to automate Siebel 7.5 using QTP 9.5.The problem is that I am not being able to run a script as the MVGs and picklista re not opening.The issue is that if I open Qtp before Siebel these controls hang.I wanted to know how I can write a code for invoking these mvgs and picklists without having open it by clicking on the Siebel buttons.
Thanks a lot Sharma brothers. u hav reflected the real time concept in the web site.
But i hav a doubt in QTP 9.0 which i am using.
i am unable to write a script for loading an object repository file(like login.tsr). first i am creating a .tsr file using repository manager, but unable to load through scripting.
Pls don’t neglect this issue. try to send me a batter script regarding this problem
Prasad
How to verify (Code) for the changing page navigation links?
e.g. –>
Navigation link now —-page 1
Navigation link later —-page 1 2 3 4
How to jump to the specific page when it is dynamically changing?
Can we automate MS Office Smart Tags using QTP?
will QTP identify the Smart Tag Icon ? if so how?
Hi Kuldeep,
I have gone through the site… It sounds interesting and helpful to work in descriptive programming in QTP.
I just started working on QTP,So I want your help here.
My question is “How to deal with radio buttons?”.
Scenario: I have two radio button “Yes” and “No” on the page.
When I add them in Object Repository,it takes single radio button only. When add “Yes” radio button,it adds with the index value 1 and when add “No’ radio button,it replaces “Yes” radio button and changes its value to 2.
Please suggest how to deal with webradiogroup object
‘————————————————————–
Cmd.activeconnection=”Provider=SQLOLEDB.1;Password=;Persist Security Info=True;User ID=sa;Initial Catalog=pubs;
Dim res,cmd,sql
Set Res=createobject(“adodb.recordset”)
Set Cmd=createobject(“adodb.command”)
Cmd.activeconnection=”Provider=SQLOLEDB.1;Password=;Persist Security Info=True;User ID=sa;Initial Catalog=pubs;Data Source=192.168.0.69″
Cmd.CommandType = 1
sql=”select emp_id,fname from dbo.employee”
Cmd.CommandText = sql
Set res = Cmd.Execute()
i=1
While not res.eof
logid = res(“emp_id”).value
logname=res(“fname”).value
print logid
print logname
i=i+1
res.movenext
wend
Set res = nothing
Set cmd.ActiveConnection = nothing
Set Cmd= nothing
‘————————————————————–
Set ExcelObj = CreateObject(“Excel.Application”)
aatype=”F:\templet.xls”
ExcelObj.Workbooks.Open(aatype)
Set NewSheet = ExcelObj.Sheets.Item(2)
Dim rs,sq,pkey
set conn=createobject(“adodb.connection”)
set rs=createobject(“adodb.recordset”)
set rs1=createobject(“adodb.recordset”)
conn.open= “Provider=OraOLEDB.Oracle.1;Password=*;Persist Security Info=True;User ID=*;SERVER=*;Data Source=*;DBQ=*;”
sql=”select * from table”
rs.open sql,conn
i=1
do while not rs.eof
values1=rs(“pkey”)
values2=rs(“name”)
NewSheet.Cells(i+1,1).Value =values1
NewSheet.Cells(i+1,2).Value =values2
i=i+1
rs.movenext
Loop
‘————————————————————–
ExcelObj.ActiveWorkbook.Saveas “F:\data.xls”
ExcelObj.Quit
Set ExcelObj = Nothing
rs.close
set rs=nothing
conn.close
set conn=nothing
‘————————————————————–
Dim Excel,ExcelSheet
Set Excelone=CreateObject(“Excel.Application”)
Set ExcelSheet=CreateObject(“Excel.Sheet”)
ExcelSheet.Application.visible=true
ExcelSheet.ActiveSheet.Cells(1,1).value=1
ExcelSheet.ActiveSheet.Cells(1,2).value=2
ExcelSheet.ActiveSheet.Cells(1,3).value=3
Excelone.Saveas “E:\tests.xls”
Excelone.quit
Set ExcelSheet=Nothing
‘————————————————————–
Set fs=CreateObject(“excel.application”)
fs.Visible=True
Set excelbook=fs.Workbooks.Add
Set excelsheet=excelbook.worksheets(1)
excelsheet.cells(1,1)=”??”
excelsheet.saveas “e:\1.xls”
excelsheet.application.quit
fs.Quit
‘————————————————————–
set fs=createobject(“excel.application”)
fs.visible=true
set excbook=fs.workbooks.open(“f:\1.xls”)
set excsheet=excbook.worksheet(1)
excsheet.cells(1,1).value=”Test”
excbook.save
fs.quit
‘————————————————————–
Dim qtApp ,pDefColl,pDef ,rtParams,rtParam
Set qtApp = CreateObject(“QuickTest.Application”)
qtApp.Launch
qtApp.Visible = True
qtApp.Open “C:\Test1″
Set pDefColl = qtApp.Test.ParameterDefinitions
cnt = pDefColl.Count
Indx = 1
While Indx <= cnt
Set pDef = pDefColl.Item(Indx)
Indx = Indx + 1
Wend
Set rtParams = pDefColl.GetParameters()
Set rtParam = rtParams.Item(“InParam1″)
rtParam.Value = “songfun”
qtApp.Test.Run , True, rtParams
MsgBox rtParams.Item(“OutParam1″).Value
‘————————————————————–
Dim a,b,c
Set a = createobject(“excel.application”)
a.visible = true
Set b = a.workbooks.add
Set c = b.worksheets(1)
c.cells(1,1) = “1″
c.cells(1,2) = “2″
c.cells(1,3) = “3″
c.saveas “e:\testtwo.xls”
c.application.quit
a.quit
‘————————————————————–
set fs=createobject(“excel.application”)
fs.visible=true
set excbook=fs.workbooks.open(“f:\1.xls”)
set excsheet=excbook.worksheet(1)
excsheet.cells(1,1).value=”Test1″
excbook.save
fs.quit
‘————————————————————–
Set alapp=createobject(“Excel.Application”)
alapp.application.visible=true
Set xlbook=alapp.workbooks.open(“e:\test.xls”)
Set xlSheet = xlBook.Worksheets(“Sheet1″)
count1=datatable.GetSheet(“Action1″).getrowcount
For i=1 to count1
alapp.cells(i,1)= datatable.GetSheet(“Action1″).getparameter(“Test1″).valuebyrow(i)
Next
xlSheet.saveas “e:\1.xls”
alapp.quit
Set excel=nothing
hi,
when i records application web/windows for both it generates Script but , Active Screen is not displaying
what is the problem can u pls explan it ?
I would like to know about implement regular expression for window title which get to change every time with clicking on hyperlink displays new text on the title bar) and numeric value appearing on that hyperlink [inbox(6)]. What changes should be implemented in Expert View as well as Object Repository. Example:: Recording login process into yahoo.com till the opening of three to Four e-mails.
Implemented regular impression in Object repository and trying to run but every time run time error is appearing.
(alkaa.dugaal@gmail.com)
It is really technically wonderful & helpful site .
Will please please put detailed Explanation of “Configuration Management “?
I want to create my own reports using descriptive programming. or want to change the formatting of the reports published through Reporter.ReportEvent.
How can i do that please guide.
Hi Kuldeep,
I don’t have much exposer on QTP but really ur sites sounds good for me. Could you please help me by resolving my few doubts:
1. Can we use QTP tool for performance testing
2. How can we do performance testing of Flex application using QTP.
3. I am able to get interact with flex app using qtp but won’t understand how do Ianalyse performance parameters of an flex app for performance testing.
Kindly reply me ASAP as I need urgently.
Looking fwd for ur reply…….
Hi Kuldeep,
I am new in QTP n don’t have much exposer in the same. But I want to do performance testing of Flex app using QTp. Could you please guide me how come I will be acheive this.
Look fwd for ur reply.
I need the solution urgently.
Thanks
Pradeep
Hi,
Can you give me some real time examples.Where this low level recording and analog recording are used.
Hi Kuldeep,
Actually i had gone through your site. Its really sounds good. But i have a question for you to ask. Is it possible to call from one vbs to another vbs.If so please send the code for the same.
Regards,
Chaitanya