Results 1 to 4 of 4
  1. #1

    NEED help on QTP script troubleshooting..

    <font class="small">Code:</font><hr /><pre>
    Dim qtApp
    Dim qtUpdateRunOptions
    Dim qtRunResultsOptions
    Dim blsSupportsVerCtrl
    Set qtApp = CreateObject("QuickTest.Application")
    qtApp.Visible = True

    qtApp.TDConnection.Connect "", _
    "DEFAULT", "B2B Platform", "test", "11123", False '
    If qtApp.TDConnection.IsConnected Then
    blsSupportsVerCtrl = qtApp.TDConnection.SupportVersionControl
    qtApp.Open "[QualityCenter] Subject\Oct Version\B2BV1.6.9.1\Operate Excel", False
    If blsSupportsVerCtrl Then
    End If

    Set qtUpdateRunOptions = CreateObject("QuickTest.UpdateRunOptions")

    qtUpdateRunOptions.UpdateActiveScreen = True
    qtUpdateRunOptions.UpdateCheckpoints = False
    qtUpdateRunOptions.UpdateTestObjectDescriptions = True
    Set qtRunResultsOptions = CreateObject("QuickTest.RunResultsOptions")
    qtRunResultsOptions.ResultsLocation = "F:\Results"
    qtApp.Test.UpdateRun qtUpdateRunOptions, qtRunResultsOptions
    qtApp.Test.Description = qtApp.Test.Description &amp; vbNewLine &amp; _
    "Updated: " &amp; Now '
    If blsSupportsVerCtrl And qtApp.Test.VerCtrlStatus = "CheckedOut" Then
    qtApp.Test.CheckIn '
    End If
    MsgBox "Cannot connect to Quality Center"
    End If

    Set qtUpdateRunOptions = Nothing
    Set qtRunResultsOptions = Nothing
    Set qtApp = Nothing
    </pre><hr />

    <font color="red"> [QualityCenter] Subject\Oct Version\B2BV1.6.9.1\Operate Excel</font> &lt;-- QTP will stop work here, don't know why? I can't stop running scripts except terminating the process.

    I was trying to access to Test Director to get the testing scripts and get it to run automatically.

    Can anybody give me a hand?

    Any help would be apprecated!

  2. #2

    Re: NEED help on QTP script troubleshooting..

    Change the [QualityCenter] bit to the path...

    c:\whatever\Subject\Oct Version\B2BV1.6.9.1\Operate Excel

    try that!


  3. #3

    Re: NEED help on QTP script troubleshooting..

    Try to open the test manually in QTP and see if it works or not?

  4. #4

    Re: NEED help on QTP script troubleshooting..

    It has to do with the path?
    just wonder



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:33 PM.

Copyright BetaSoft Inc.