I have two For loop, first For loop does is creates a
customer and input the customer info and then the second for
loop within the first for loop does the follows which is
capture the customer name and verify the with the data
within the datatable. The problem I am coming across is that
when it goes through the second time creating another
customer and then verify the second customer then it creates
the following during runtime. I want is to have the
customer2 below Customer1 under the Customer_from_Apps. Any
help will be greatly appreciate it.

Customer Customer_from_Apps Customer_from_Apps1
Customer1 Customer 1 Customer2
Customer2

Window("Customer Desktop").Window("Customer Tracking
(Privacy").WinObject("TreeView20WndClass").Click 92,244
runtimevalue =
.VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio
n")
Customer_Val= Datatable.GlobalSheet.AddParameter
("Customer_from_Apps",runtimevalue)
row=datatable.getsheet("Global").GetRowCount
For x=1 to row
datatable.SetCurrentRow(x)

Data_Val=Datatable.Value("Customer",dtGlobalSheet)
If (trim(Customer_Val)=trim(Data_Val)) Then
Reporter.ReportEvent micPass, "Customer validation
successful", "Actual Value: " &Data_Val&vbcrlf& "Customer
Value: " &Customer_Val
else
Reporter.ReportEvent micFail, "Cusotmer validation
unsuccessful", "Actual Value: " &Data_Val&vbcrlf&
"Customer Value: " &Customer_Val
End If
Next


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More QTP Interview Questions

How can we disable popup blocker?

1 Answers  


What is Terminal Emulators”? Why we used in QTP.? How he works on QTP.

1 Answers  


Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

0 Answers  


I am using DataTable.ImportSheet method to import the data from an excel sheet to the Runtime DataTable of QTP. here is my piece of code DataTable.import("c:\DataSheet.xls","Members","Members") The first row headings of Members sheet of DataSheet.xls and Members sheet of QTp are matched. but the QTP is taking very long time(approximately half an hour) to import the data into runtime datatable even though the DataSheet.xls has one or two rows in it. Please let me know why this is happening and is there any alternative for impoting the data into runtime datatable of qtp ?

2 Answers  


How to match two doc files using qtp requirment is:- each and every single word of a doc file should be matched with the another doc file. can someone send me the code.

1 Answers  






Hi cud you plz answer my question.. what is the size of Object Repository?

8 Answers   TCS,


How many types of Actions are there in QTP?

6 Answers   Wells Fargo,


What is difference between function and procedure?

41 Answers   HCL, IBM, iGate, Infosys, TCS, Veritas, Wipro,


How you used DDT in QTP?

1 Answers  


How did you resolve conflicts present in Object Repository?

0 Answers  


What is meant by Environmental variables?2 types r there know…can u pls explain clearly?

1 Answers  


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

0 Answers  


Categories