i need the word "good morning" to be displayed by default
whenver we click upon the blank test while opening the qtp.
Could you please answer...
Answers were Sorted based on User's Feedback
Answer / devipriya
You can set any default text in QTP by the following method.
1. Open the dat folder in the following path:
C:/ProgramFiles/MercuryInteractive/QuickTestProfessional/dat
2. Create a notepad in that folder.
3. Enter the text you want get displayed in QTP by default.
Use single quotes "'" before the text so as to make it a
comment.
eg., 'Good morning
4. Save the file as "Actiontemplate.mst"
That's it. Whenever you open the QTP you can see the text
added in Actiontemplate by default.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / chinna
You can set any default text in QTP by the following method.
1. Open the dat folder in the following path:
C:/ProgramFiles/MercuryInteractive/QuickTestProfessional/dat
2. Create a notepad in that folder.
3. Type the text at "Good morning"
4. Save the file as "Actiontemplate.mst"
That's it. Whenever you open the QTP you can see the text
added in Actiontemplate by default.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / swapna
I have create actiontemplate.mst in dat folder, however
could not see when I opened QTP. Where exactly in qtp does
it display?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravi
HI Swapna,
The answer given by Chinna is correct.It working fine.
Create an Actiontemplate.mst file in the above mentioned
path, That is where u installed your QTP.
Now Open QTP application, When u can see the whatever text
u have written in the Actiontemplate.mst file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sudeepthz
Hi Could some one explain me how to create the notepad in
Dat folder.. Give me with an example please
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jay
Hi Swapna,
The above script is correct. It works fine.
I have encountered the same problem, but the problem is not
with the script.
As per the script i have created a notepad but while
renaming i have selected someother notepad file. The script
didnt work. So For Crossverification i have opened the
Actiontemplate.mst file in notepad where i was expecting my
default test eg: Good morning but i could not find the
text. Then i recognized i have done a mistake and edit the
same file and entered the text and saved it.
I hope you would have done the same. It works for me now..
Pls let me know if you still could not figure the issue
| Is This Answer Correct ? | 0 Yes | 0 No |
What is smart identification?
In a yahoo web Application there are 65 links.one day it will opens 50 links and another day it will open 55 links.In this scenerio write Descriptive programing for Automation?....Pls write the code for this scenerio.
1 Answers College School Exams Tests, UHG,
In qtp, explain what is qrs file?
How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
how to idetfy which test cases are automated?who will deside that plz tell me
How can i learn Descriptive programming in QTP. Please reply.
For the below written code , i want to be stop the loop (ex:10 times), but it is focusing to first line of the code & generating error. vbwindow("vbname:=frmMain").Type micAltDwn + "6" + "2" + "D" +micAltUp 'wiil open the particular window in application vbwindow("vbname:=frmDeduction").vbbutton("vbname:=cmdNew").Click DataTable.ImportSheet"F:\QTP VBScript\Form 26-1.xls","Deduction",Global RowCount = DataTable.GetSheet("Global").GetRowCount i=RowCount For j =1 to i 'vbwindow("vbname:=frmDeduction").WinObject("nativeclass:=DataComboWndClass","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type DataTable("Section", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micTab vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtOfPay").Set DataTable("Amount_of_Payment", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Set DataTable("Amount_PaidCredited_Date", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type DataTable("Deduction_is", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micTab vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdSave").Click DataTable.SetNextRow Next vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdClose").Click
Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha
How to "Turn Off" QTP results after running a Script?
Is there a function to find the number of occurrences of sub strings within a string?