HOW do we find a datasheet when there are 4 datasheets in
data table.this question was asked by covansys interview.
Answers were Sorted based on User's Feedback
Answer / surya prakash
DataTable.GetSheet(SheetID)
"SheetID" Variant Identifies the sheet to be returned.
The Sheet ID can be the sheet name or index. Index values
begin with 1.
to find the no of sheets in DataTable
"DataTable.GetSheetCount" method can be used
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / manoj4testing
we can find a data sheet using sheet id or sheet name we can
access the sheet using its id or name in the script
(pls notify if i am wrong)
manoj4testing@yahoo.com
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / salman
Yes when there are 4 sheets in a data table,each sheet will
have a distinct name or id.We can access each sheet with
its names.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / firoz shaik
when we create 4 different actions, then we can see 4 data
sheets(Local Sheets), excluding 1 Global Sheet.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / raghu
By giving different names to each and every sheet
| Is This Answer Correct ? | 1 Yes | 0 No |
In QTP, Give the difference of Global sheet and Local sheet in datatable?
I am verifying the actual vs the input value to make sure that they been entered correctly. In the Global Sheet I have a column called Customer with the multiple names in each row and now I am trying to capture the value during runtime under the column name Customer_in_Apps. Somewhat it works but during runtime the values are being stored in each column vs each row i.e., Customer_in_Apps, Customer_in_Apps1. Automatically it add columns instead of rows. row=datatable.getsheet("Global").GetRowCount for x=1 to row datatable.getsheet("Global").SetCurrentRow(x) Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Val1=Datatable.Value("Customer",dtGlobalSheet) Val2 = Datatable.GlobalSheet.AddParameter("Customer_in _Apps",runtimevalue) If (trim(Val2)=trim(Val1)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Val1&vbcrlf& "Customer Value: " &_Val2 else Reporter.ReportEvent micFail, "Customer validation unsuccessful", "Actual Value: " &Val1&vbcrlf& "Customer Value: " &Val2 End If Next
Suppose there is a bitmap with some text in it how do you write the script to get the text.
What are they Advantages and Disadvantages in QTP 9.2?
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
difference Between Call Run action and copy of action?
What is an expert view and keyword view?
Using Regular expression in Date format DD/MM/YYYY (0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[12])/([0-9]{4}) in this regular expression year 0000 also accepted.I need atleast any one single digit must be nonzero value (like 0009,1000,0034)
what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "
Maximum synchronizing time out in QTP