Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import automated test cases from Excel
#1
Not Solved
Hi,
I tried to import automated test cases (for QTP 9.5) from Excel to HP QC 9.2.
I can get test case with Test Type - QUICKTEST_TEST but
Test Script tab for new created TC is empty and when I open new created TC I have an error:
"Cann't display test.Make sure the test exist in the database."
I tried to create OTA API script but have a problem to find all methods
for QCUtil=>TreeManager=>TestFactory....=>AddItem
Script:
Code:
Set oTest = QCUtil.QCConnection
   Set oTestMgr = oTest.TreeManager
   Set oTsttr = oTestMgr.NodeByPath(pPath)
   Set oTstFact = oTsttr.TestFactory
   Set oTstCase = oTstFact.AddItem(pTestName)
   oTstCase.Field("TS_DESCRIPTION") = pDescr
   oTstCase.Type  = "QUICKTEST_TEST"
Any idea how I can populate automated Test Script in new created TC (By code or by setting import process. What method of AddItem generated test script for Test Script tab in ???
Best regards, Vladimir
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  DataTable Import or Excel Object Automation_learner 1 1,741 11-15-2017, 03:56 PM
Last Post: Ankur
  Looking for any open source tool for test cases track or evaluate kalpana 0 1,857 01-17-2013, 10:23 PM
Last Post: kalpana
  Get the Parent Folder name in Test Plan for a Test from Test Lab using QTP godsown 0 6,144 09-29-2011, 04:55 PM
Last Post: godsown
  how can I save a DataTablefrom one test and import the same to another Test uma87 3 2,685 08-26-2011, 05:46 PM
Last Post: sshukla12
  QTP DataTable.Import Issue Neha Singh 6 10,093 08-26-2011, 04:29 PM
Last Post: parminderdhiman84

Forum Jump:


Users browsing this thread: 1 Guest(s)