Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simulate Tab in qtp
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
I want simulate the key tab ,how can i do this with regex???

I saw that i have to use the follow regex: \t.

But i dont know how can i use this.

Someone can help me,please??
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
In String i have mentioned tab in between
Code:
"reg(tab)str"
vStr = "reg    str"
Set oReg = New RegExp
oReg.Pattern = "\w*\t\w*"
Set Matches = oReg.Execute(vStr)
print Matches(0)
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
to simulate tab no need to use regex use micTab
Reply
#4
Solved: 10 Years, 8 Months, 3 Weeks ago
Thank you very much for the answers!!But i didnt get that i am trying!!

I am trying to do a login in qc from qtp !! Do you know how can i do that??


I want that when i running a test ,i want input my login and my password in qtp automatically.
Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
Well, I am still uncertain about your requirement. But let me throw out all of the options available,
1. You can establish an automatic connection to QC with QTP on the settings tab. This way you can remain connected to QC forever to save tests or download tests from QC.
2. There is a util called QCUTIL available on QTP to interact with QC. This is a programmatic reference and you can talk to the QC using QTP via this object.
3. If you are trying through Vbscript you can use the below object to exploit methods of QC. This is programmatic reference.
Code:
Set QCConnection = CreateObject("TDApiOle80.TDConnection")

Pick your choice and ask questions based on that. You can also use QTP user guide to know more about the various methods and actions available for that object as well google for the keyword.
Good Luck and happy learning Smile
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#6
Solved: 10 Years, 8 Months, 3 Weeks ago
what is the Query?
Is it simulating the tab or connecting to QC?
Reply
#7
Solved: 10 Years, 8 Months, 3 Weeks ago
Thank you very much for the answers again .I am a beginner yet and i started to working with QTP recently.
i was trying simulate the key tab because the qc recognizes the user and password as one object and not two objects separated .Then i was trying to login in qc with any code on qtp.
I will try the possibilities who you told me and after i contact you.
Reply
#8
Solved: 10 Years, 8 Months, 3 Weeks ago
I got!!

I used the program "AutoIT".

Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Identifying Dynamic tab in Java table vinod_qtp 3 6,344 11-30-2012, 04:32 PM
Last Post: Arul
  Tab Flow in a Sign In page for web Application. Madhavi 4 4,205 04-19-2011, 10:30 AM
Last Post: Madhavi

Forum Jump:


Users browsing this thread: 1 Guest(s)