Micro Focus QTP (UFT) Forums
Capegemini Telephonic Interview (my first interview) - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: Capegemini Telephonic Interview (my first interview) (/Thread-Capegemini-Telephonic-Interview-my-first-interview)



Capegemini Telephonic Interview (my first interview) - anu05446 - 02-05-2014

Please go theough the file and let me know my mistakes and better and Proper ansers to the quesrions, it will be a great help


RE: Capegemini Telephonic Interview (my first interview) - debakanta - 02-15-2014

i want to know more about web table. In a web table some of the cell contains same cell data.how to find out how many cell contains that same data.


RE: Capegemini Telephonic Interview (my first interview) - anu05446 - 02-16-2014

take a counter and fetch the value of the cells in datatable and compare against the desired value, increase the counter for every match.

Code:
col_count= Browser().Page().WebTable().ColumnCount(1)
  row_count=Browser().Page().WebTable().RowCount
'counter
cell_count = 0

  For irow=2 to row_count
      For icol = 1 to col_count
          If  trim(Browser().Page().WebTable().GetCellData(irow,icol))= "data to be searched" Then
              cell_count = cell_count+1
          End If
         Next
Next
msgbox cell_count



RE: Capegemini Telephonic Interview (my first interview) - basanth27 - 02-17-2014

Firstly, Thank you for posting out the questions and answers in a very clear and concise manner. I am sure anyone attending an interview would reap benefits out of this.

I did wait for a couple of days before replying to this post, hoping to see if there was any different perception. Well, from the questions and the answers given by you, I see you are pretty much confident and clear of the subject. Almost all of the answers for the questions were correct. Although, things could be done a 1000 different ways, it is always the logic which is outstanding. I do not see any issue with that concerning you.

However, I believe the mention of pointers is misleading for the array question. I doubt if you could use pointers in vbscript. In my opinion it is best to stick to what you know then throwing things out of the bag.

It also depends on the interviewers perception. Most of them believe whatever logic they are following in their organization is correct. They are inbred with that solution and probably are looking for that piece of the puzzle only. Any deviation from that lead them towards the dissatisfied zone. There is no permanent remedy to this but it is better to hope we do not come across them. Nevertheless, the idea is always to be confident of what you know because you may miss a few but you will hit where it matters the most.

Did you get through the interview?


RE: Capegemini Telephonic Interview (my first interview) - anu05446 - 02-17-2014

Thanks Basanth, for your reply. And regarding that array question, the way the interviewer was asking me to list out another approach, I just got confused and uttered pointer in a low and confused voice because even I never heard of/worked on pointers in vbs. Haha. And yes I got through the interview. Smile


RE: Capegemini Telephonic Interview (my first interview) - basanth27 - 02-17-2014

Congratulations !! Actually, the large part of my post is nullified with your selection Smile Nevertheless, Good Luck on your job hunt. You should definitely get into a better place.