Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP AOM related Question - need solution
#1
Solved: 11 Years, 2 Months ago
I have QTP Fraemwork related query, I already developed a code which dynamically load repositories,add library file and it is working fine.
But while generating the code I came up with lot of questions.

please read the code what i developed

sample.vbs file -
Code:
EnvXMLfile = "C:\properties.xml"
libraryfile = "C:\\commonLibraryFunctions.vbs"
Set qtp_App = CreateObject("QuickTest.Application")
qtp_App.launch
qtp_App.Visible = True

qtp_App.Open "C:\sampletest",true,false
qtp_App.Test.Environment.LoadFromFile(EnvXMLfile)

qtp_App.Test.Settings.Resources.Libraries.RemoveAll
qtp_App.Test.Settings.Resources.Libraries.Add(libraryfile)
qtp_App.Test.Actions(1).ObjectRepositories.RemoveAll
qtp_App.Test.Actions(1).ObjectRepositories.Add "C:\Shared OR.tsr"
qtp_App.Test.Run


Now my questions are :

1. even though loading environmental file dynamically it will not show value in the QTP script, not able getting any values for environment veriable , but it is added dynamically ?

2.here i add .tsr file for one action , but a test can have multiple action , how could I associate that .tsr file for all the action with in the same test ?

3. even test can have some external action which is belongs to some different test and that test can have others .tsr file.
How could I handle it ?

Please answer my all above question and since I am new, I am trying to develope this piece of code.


Thanks in advance .....
Reply


Messages In This Thread
QTP AOM related Question - need solution - by prodipto_dutta - 05-02-2011, 04:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Scrambled characters in uft Solution Explorer Dwarak Calayampundi 0 1,504 05-25-2016, 05:02 AM
Last Post: Dwarak Calayampundi
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,493 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  QTP system related issue Bharathi Kanagarajan 1 2,061 09-12-2015, 11:28 PM
Last Post: ADITI1992
  AOM script is running only one or two scripts. jramya 4 4,076 07-24-2014, 06:15 PM
Last Post: jramya
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,156 05-31-2014, 12:00 PM
Last Post: excellentpawan123

Forum Jump:


Users browsing this thread: 5 Guest(s)