Record the 7 test objects (dropdown boxs) and there will be many 70 properties ( and their associated bvalues)
Drop Down Box 1
Drop Down Box 1
Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table.
yes, parmetrize the SQL statement
Action button is used to split ur recored scriped into number of action.this help to reduce complexcity of ur script. Scripts are divided in to action at the time of recording or after the complettion of recording also. u can make action as reusable action.the main advantage of action are1. U can call any existing action(reusable)- this save ur time and memory.2. U can call any copy of action plus u can also append action.
Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.
Q.156 How do you data drive an external spreadsheet?
Import from External Spreadsheet File by selecting Import then From File . Which imports a tabbed text file or a single sheet from an existing Microsoft Excel file into the table. The sheet you import replaces all data in the currently selected sheet of the table, and the first row in the Excel sheet replaces the column headers in the corresponding Data Table sheet. It is therefore essential that the first row of your Microsoft Excel sheet exactly matches the parameter names in your test.
If it is a Database instead of Spreadsheet by selecting Import then From Database. It imports data from the specified database to the current sheet
If it is a Database instead of Spreadsheet by selecting Import then From Database. It imports data from the specified database to the current sheet
In QTP, there is data table used , which is used at runtime.
-In QTP, select the option View->Data tabke.
-This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.
-In QTP, select the option View->Data tabke.
-This is basically an excel file, which is stored in the folder of the test created, its name is Default.xls by default.
QTP frame work is like Test Plan for automation using QTP. It contains information regarding naming conventions, variables, data for DDT, about the OR path, how the scripts should be commented and what is the purpose of each script etc..
InvokeApplication "The path of the browser EXE file"
The following example uses the InvokeApplication function to open Internet Explorer.
InvokeApplication "E:Program FilesPlus!Microsoft InternetIEXPLORE.EXE"
The following example uses the InvokeApplication function to open Internet Explorer.
InvokeApplication "E:Program FilesPlus!Microsoft InternetIEXPLORE.EXE"
Common functions are:
Coloring the cell
Auto fit cell
setting navigation from link in one cell to other
saving
Coloring the cell
Auto fit cell
setting navigation from link in one cell to other
saving
Vbs,Excel,dlls and any other files that for importing,Processing and Resulting can be treated as External files in QTP
There is no Hot key for space bar.
U can use (Type" ") command
U can use (Type" ") command
we can get the path dynamically in qtp by using
object.ScriptFullName method.
object.ScriptFullName method.
After writing ur function and save it asa .vbs file.U double click on it and make it error free.
Then in QTP , you go to Test->Settings->Resources.. and then click on the "+" symbol and browse the .vbs file and click on Apply Button.
After that Call ur procedure with the "Call" Statement..It will work
There is another way also
u can write this command like
executefile path,
specify the path of .vbs file , It will work
U can do either of the ways.
Then in QTP , you go to Test->Settings->Resources.. and then click on the "+" symbol and browse the .vbs file and click on Apply Button.
After that Call ur procedure with the "Call" Statement..It will work
There is another way also
u can write this command like
executefile path,
specify the path of .vbs file , It will work
U can do either of the ways.
Q.165 Create your test plan
Prior to automating there should be a detailed description of the test including the exact steps to follow, data to be input, and all items to be verified by the test. The verification information should include both data validations and existence or state verifications of objects in the application.
You run a test to check the behavior of your application. While running, Quick Test connects to your application and performs each step in your test.
Name would be another property apart from title that we can use.
Try this below code
NumColumns=datatable.GlobalSheet.GetParameterCount
NumRows=datatable.GlobalSheet.getrowcount
For i = 1 to NumRows
Datatable.SetCurrentRow(i)
For j = 1 to NumColumns
tblCellText = Datatable(j,dtGlobalsheet)
If tblCellText <> "" Then
Msgbox "The Text in Row: " & i & " and Column: " & j & " is: " & tblCellText
End If
Next
Next
NumColumns=datatable.GlobalSheet.GetParameterCount
NumRows=datatable.GlobalSheet.getrowcount
For i = 1 to NumRows
Datatable.SetCurrentRow(i)
For j = 1 to NumColumns
tblCellText = Datatable(j,dtGlobalsheet)
If tblCellText <> "" Then
Msgbox "The Text in Row: " & i & " and Column: " & j & " is: " & tblCellText
End If
Next
Next
You examine the test results to pinpoint defects in your application.
First we have install Terminal Emulator add-in. Then try to identify the objects.
The objects will be added to the object Repository, but these objects will be identified depends the X, Y co-ordinates of the objects.
The objects will be added to the object Repository, but these objects will be identified depends the X, Y co-ordinates of the objects.
Function and Sub Function are similar. Only the difference is Sub Function will not return any thing to the function. But using Function it returns result to the function.
We can use function wherever we neet it.
We can do parameterization and also reducing the lines of code, etc...
We can use function wherever we neet it.
We can do parameterization and also reducing the lines of code, etc...
Selecting the block and press (ctrl + M)
kindly refer vb script help which comes as a prt of qtp help
Fso is used to create an object handle for the text files so that we can use and program the methods on that object
Inserting checkpoints into your test lets you search for a specific value of a page, object or text string, which helps you identify whether or not your application is functioning correctly. NOTE: Checkpoints can be added to a test as you record it or after the fact via the Active Screen. It is much easier and faster to add the checkpoints during the recording process. Broadening the scope of your test by replacing fixed values with parameters lets you check how your application performs the same operations with multiple sets of data. Adding logic and conditional statements to your test enables you to add sophisticated checks to your test.
Ofcourse u can if u have authority to do so.
set ObjConn=CreateObject("ADODB.Connection")
set ObjRec=CreateObject("ADODB.Recordset")
ObjConn.open "DriverName","UserId","Password","Server"
set ObjRec.activeConnection=ObjConn
ObjRec.source="SQL Query"
ObjRec.open
set ObjConn=CreateObject("ADODB.Connection")
set ObjRec=CreateObject("ADODB.Recordset")
ObjConn.open "DriverName","UserId","Password","Server"
set ObjRec.activeConnection=ObjConn
ObjRec.source="SQL Query"
ObjRec.open
Good effort bro plz keep some more about softwre testing ..thanx ..
ReplyDelete