Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Category to QC to trigger Environment in Automated tests
#1
Not Solved
Hey Guys,

I had this working in earlier versions of QTP / QC

I created a new look up list in QC to list out the various environments I need to run my scripts against (example - Functional test environment, Production, Demo). The way we had it set up in the past was by creating a Test called "Environmental Switch" which contained the following code:

Code:
Dim TS_Test
Set TS_Test = QCUtil.CurrentTestSetTest

reporter.ReportEvent micDone, "The Environment to be used: ", TS_Test.field("TC_USER_01")

If TS_Test.field("TC_USER_01") = " " Then
    environment("env_") = "Production"
End If
environment("env_") = TS_Test.field("TC_USER_01")

RunAction "Login Root [LoginRoot]", oneIteration

Basically the testsettest from what I can see has become the Test Instance Project entity in QC.

After having set this up I call it from my Routine Log in Script. Now I can not get it working as I have upgraded to both the latest versions of QC / QTP. Any Ideas here?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to get the list of items in Delphi Combobox Environment Object Raj Aryan Singh 3 2,271 02-04-2020, 12:32 AM
Last Post: Raj Aryan Singh
  how to get relative path by using testdir environment variable Sathyaprasad 1 1,937 11-30-2017, 02:21 AM
Last Post: supputuri
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,658 05-30-2017, 12:17 AM
Last Post: Vichu M J
  Adding negative amount in webedit Rose 1 2,132 06-30-2016, 09:34 PM
Last Post: babu123
  [UFT] [WPF] Trigger on TextBox robertosalemi 2 2,154 05-26-2016, 07:32 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)