Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel Questions
#1
Not Solved
I have 3 questions ..
1. I would like to put an index in the Excel spreadsheet instead of the word. For example if the name Anna is the second in the dropdown list I would like to put "2" instead of "Anna" How can I do that? Winrunner has this capability but I cannot figure out how to do this in QTP?
2. When using Excel I would like to be able to start from any row.. not just row #1. I cannot seem to figure this one out either. Again Winrunner had this ability.
3. How do you stop the scrip other then clicking the stop button?
Reply
#2
Not Solved
For your second question:
Check QTP help, i've seen a SetCurrentRow Method. Is that what you're looking for?
Reply
#3
Not Solved
DataTable.GetSheet("").SetCurrentRow(6) this works but what goes here ("") I had to take out "MySheet" obviously but the name of my data table did not work either.
Reply
#4
Not Solved
I'm new on QTP, but i thing its depending on the sheet you're using.
If you use the GlobalSheet, you can write:
DataTable.SetCurrentRow (6)

For more Information take a look at:
https://www.learnqtp.com/qtp-and-excel-part1/
https://www.learnqtp.com/qtp-and-excel-part2/
https://www.learnqtp.com/qtp-and-excel-part3/

I hope this helps...
Reply
#5
Not Solved
Thanks. This helpsSmile Well .. links 2&3 do not work but link 1 has some useful info. Now I just need #1 and #3 answered.
Reply
#6
Not Solved
Dear Anna,
For your 3 rd question read the following post..
https://www.learnqtp.com/forums/Thread-e...de#pid1947

For your 1st question you can use switch case and try it.
Reply
#7
Not Solved
I am not sure what this has to do with my 3rd question. Please explain ..
Reply
#8
Not Solved
If i understand your third question, you want to stop running your script on a definite event. Is that right?
Then you can use somisays link to the other post...

Or do you mean a testing situation and you only want to test a small part of your script?
In this case you can insert a breakpoint (Debug>Insert/Remove Breakpoint) at your current line, so that your script automatically stops at this point instead of running through the whole script. Smile
Reply
#9
Not Solved
I just want to stop the script at any point in time but sometimes I cannot access the STOP button because the cursor is controlled by QTP to some degree so I was wondering if there was a hot key?
Reply
#10
Not Solved
Hi Anna,

To stop the execution you can use F4 Function key.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  few questions?? ACCBAJPA 1 2,408 07-08-2014, 02:01 PM
Last Post: QTpier
  QTP supportabi​lity questions debby_huijin 1 2,229 05-19-2014, 06:32 AM
Last Post: debby_huijin
  Hello All -Nice forum to start learning QTP. Few questions QTP.learning 0 1,893 05-18-2014, 04:10 PM
Last Post: QTP.learning
Question QTP Questions yodhpal 1 3,478 03-17-2011, 12:57 PM
Last Post: basanth27
  3 basic questions..please help Blizna 5 5,052 07-09-2010, 12:21 PM
Last Post: sasmitakumari

Forum Jump:


Users browsing this thread: 1 Guest(s)