Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QC OTA Run Only one script and How to import DataTable during run time
#3
Not Solved
Hi Ravi,

I tried to get the attachment associated with my testscript.
There is no attachment with the script.

I used the below code:

Code:
Set PlanTestFactory = QCConn.TestFactory
Set PlanTestFilter = PlanTestFactory.Filter
PlanTestFilter.Filter("TS_NAME") = "Google_Search"
PlanTestFilter.Filter("TS_SUBJECT") = Chr(34) & "Subject\Release11\QTP-Dummy" & Chr(34)
Set PlanTest = PlanTestFactory.NewList(PlanTestFilter.Text)
Set TSTObjToRun = PlanTest(1)
Set AttachmentObj = TSTObjToRun.Attachments
'----------------------------------------------------> It does not enter for loop
For Each attname In AttList
        attActName = attname.DirectLink
        MsgBox attActName
Next

Additional Information:
I saved the Test script in QC using SaveAs option in QTP.
In QC, i did not find any attachments for for the test script.
How do i import a new file during run time.

Also can you pls help me to execute only one script in a test set.
I have written code, but it is executiong the whole testset despite providing the id of the test instance.
Ex., Scheduler.Run ID
Reply


Messages In This Thread
RE: QC OTA Run Only one script and How to import DataTable during run time - by Gurushankar - 01-03-2012, 12:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Run Result Viewer-Standalone tool aeronmak 1 2,592 04-08-2014, 10:59 AM
Last Post: Ankur
  qtp run error nawres 5 4,566 12-07-2012, 07:52 PM
Last Post: elango87
  how to run multiple QTP scripts from QC on different remote machines urksp 1 6,289 09-07-2011, 03:20 PM
Last Post: rameshrise3
  when to use the command InvokeApplication and SystemUtil.Run srivaas.b 2 5,407 12-24-2010, 10:51 AM
Last Post: Shubhangi
Toungue Batch Run bfakruddin 1 3,107 11-02-2010, 09:33 PM
Last Post: sreekanth chilam

Forum Jump:


Users browsing this thread: 1 Guest(s)