I am trying to create functions to perform tasks like Login, Logout, URL Selection, etc. But I cannot seem to find help anywhere. either I am not searching correctly, or QTP cannot do Functions (I highly doubdt)
This is what I have:
Do I need to "Call" a function?
Where are Functions suppose to live? (I have them in my Test dir)
Do I need code to tell where these Functions live?
Is there any material around on how to perform Functions?
MUST all of my Functions be in one file? At present, I have each Fjnction going to its own QTP file. If so, and I think it is, how do I assoc 10-20 functions in one file to the test scripts I plan to build. I do not want to have every script to have its own login, close all logout text that I must update. I want one login, one close all and one logout script.
Depending on which scripts I want to run at night, I was hoping to comment or uncomment a script in my Main script above to determine which scripts would execute.
Anyone have a good way to handle this? ;-)
thx
This is what I have:
Code:
'CTE Testing
Call Function CloseAllOpenWindows ()
Call Function LaunchCTEBrowser ()
'Run tests here
Call Function LoginImageAccessCTE ()
Call Function ActivityReportByReportI ()
'End
Call Function LogoutCTE ()
Call Function CloseAllOpenWindows ()
Do I need to "Call" a function?
Where are Functions suppose to live? (I have them in my Test dir)
Do I need code to tell where these Functions live?
Is there any material around on how to perform Functions?
MUST all of my Functions be in one file? At present, I have each Fjnction going to its own QTP file. If so, and I think it is, how do I assoc 10-20 functions in one file to the test scripts I plan to build. I do not want to have every script to have its own login, close all logout text that I must update. I want one login, one close all and one logout script.
Depending on which scripts I want to run at night, I was hoping to comment or uncomment a script in my Main script above to determine which scripts would execute.
Anyone have a good way to handle this? ;-)
thx