Hello,
After practicing a long time how to learn scripting in QTP, i wanted to learn, wich way is the best to set up QTP.
I want to use Descpriptive Programming, Data Driven and Keywords. I don't want to setup the test with the keywords in an excel document, but in QTP.
I made a setup like this:
-In QTP every Action corresponds with one design-document
-In the Data Table each Action is one Sheet
-In my script i use keywords, the script looks like this:
----------------------------Testcase 1------------------------
----------------------------Testcase 2------------------------
-I made one function file (.qfl) per Action.
-In this function file (.qfl) i make functions for all the keywords from my script.
In this function i refer, that the testdata comes from a Data Table with the kolom name, that is the same as the keywordname.
-I put my data in the Data Table
-This set up works very good, simple, and keyworddriven!
Because i have no experience with how to set up QTP the best way (i have no experience with it), is this a good way?
Is it a problem that the most of my scripting is in the function library files, and that there are a lot of functions in it?
Can this setup give performance problems, problems with the memory usage, or other problems?
Are there more people who set QTP up like this?
After practicing a long time how to learn scripting in QTP, i wanted to learn, wich way is the best to set up QTP.
I want to use Descpriptive Programming, Data Driven and Keywords. I don't want to setup the test with the keywords in an excel document, but in QTP.
I made a setup like this:
-In QTP every Action corresponds with one design-document
-In the Data Table each Action is one Sheet
-In my script i use keywords, the script looks like this:
----------------------------Testcase 1------------------------
Code:
For i = 1 to 3
SetCurrentRow(i)
StartApllication
EnterUsername
EnterPassword
PushButton
CheckPoint
CloseApplication
Next
Code:
'The next testcase, with another loop, is use the loop the select the good row in the Data Table.
For i = 4 to 7
SetCurrentRow(i)
The Keywords
Next
-In this function file (.qfl) i make functions for all the keywords from my script.
In this function i refer, that the testdata comes from a Data Table with the kolom name, that is the same as the keywordname.
-I put my data in the Data Table
-This set up works very good, simple, and keyworddriven!
Because i have no experience with how to set up QTP the best way (i have no experience with it), is this a good way?
Is it a problem that the most of my scripting is in the function library files, and that there are a lot of functions in it?
Can this setup give performance problems, problems with the memory usage, or other problems?
Are there more people who set QTP up like this?