Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interview Questions - 4
#1
Not Solved
Hi Friends, I want to post Interview Questions every day. So that the people who are under trails can get familiarize with the QTP and it's related questions. So here are the questions for today......
'********************************************************
1) what is the method that will convert a comma separated array to comma separated string?
2) What is OTA? How it will be useful in QTP?
3) How you will capture the run-time property vales for a windows based application using spy?
4) What is dictionary object and it's useful in QTP?
5) Have ever registered any function? If Yes, how we will do it?
*********************************************************
Thanks,
SUpputuri
Reply
#2
Not Solved
Answer for Question 1:
Code:
Dim TestItem
TestItem=Array ("Pickle", "Pineapple","Papaya")
' Returns "Pickle, Pineapple, Papaya"
Dim TestShoppingList  
TestShoppingList=Join(TestItem, ", ")
[hr]
Answer for Question 2:
OTA is the QC/TD API that can be used very effectively to work with Quality Center ot Test Director.

Below are some simple example usages of OTA.
For more info, refer the OTA doc that comes along with QC/TD.
Searching the support site and sqa forums will also give valuable inputs.

1. Adding a Manual Test case through QTP
The below code can be used to create a manual test case into QC, provided QTP is already connected to QC.
Code:
Dim td 'As New TDConnection
Dim dsf 'As DesignStepFactory
Dim tf 'As TestFactory
Dim t 'As Test
Dim ds 'As DesignStep

Set td = QCUtil.TDConnection
Set tf = td.TestFactory
t = tf.AddItem("New Manual test")
t.Post
Set dsf = t.DesignStepFactory

For i = 1 To 5
Set ds = dsf.AddItem(Null)
ds.Field("DS_STEP_NAME") = "Step " & i
ds.Field("DS_DESCRIPTION") = "The design step description"
ds.Field("DS_EXPECTED") = "The expected"
ds.Post
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Interview Questions praveen.sharma 4 5,907 08-23-2022, 02:07 PM
Last Post: ahmad3029
  Interview Questions supputuri 12 13,502 08-23-2022, 11:45 AM
Last Post: ahmad3029
  Interview question nandha 0 1,873 03-28-2018, 03:32 PM
Last Post: nandha
  Few Interview Question asked in various Companies.. shailesh.2.singh@bt.com 1 3,459 08-08-2017, 09:24 AM
Last Post: mallika199317@gmail.com
  Interview Question raghavaqtp 1 3,774 12-20-2014, 09:55 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)