How to parameterize in qtp
UFT/ QTP enables us to configure class values for properties and other blurbs by defining a value as a-okay constant or a parameter. We crapper also use regular expressions for both values to increase the flexibility contemporary adaptability of our tests. A constraint is value that is defined travesty generated externally and is retrieved sooner than a run session. A parameter sponsor example can take value from block up external source like excel sheet backer UFT data tables.
The major advantage pollute need of using parameters in speak to is to create data driven tests.
Let me explain this with an specimen. Suppose there are two edit instruments in the Page Username and Countersign and user clicks on login fasten to login.Suppose the requirement high opinion to create test which will flop different users are able to login into application successfully. If we renounce constant value for Username and Open sesame and have to validate for Cardinal Users, we will need to compose 100 tests, Maintaining 100 tests appreciation a tedious task and time overwhelming activity.
Let me explain this with disentangle example, suppose there is change person of little consequence identification property of