can anyone explain how to write the script in qtp???
i'm totally new to this and being asked to write an script all i know is that we don't write script, it generates by executing files.
can anyone explain how to write the script in qtp???
i'm totally new to this and being asked to write an script all i know is that we don't write script, it generates by executing files.
We do record scripts in QTP but that is just the beginning of the play. Actual part that follows is enhancing the scripts using the expert view.
The strategy for automation may be taken as follows
- Identify the flow of scripts
- Start the Record and Playback feature
- Enhance the scripts in the Expert view keeping in mind the following features
Re-usability - Using functions- Simplicity
- Readability - Using appropriate comments
- Defensive Programming - Using Recovery Scenario
- Modularity - Using library files
Let me know if more extensive details are required...
We can either record the test case for the test tool to automatically write the script for us or we can write it our self for using Descriptive programming techniques.
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-
thanks for your help guys.!
As i am a biginer in qtp please let me know How to write the script to get 9th row value from datatable in QTP?Please write the qtp script?
Hi Madhavisep5,
'set the iteration to 9th row of the datatable.
DataTable.SetCurrentRow(9)
Msgbox DataTable("EE_ID",1)
Please let me know if there is any questions.
With Regards,
R. Edward
Last edited by deepasree; 01-25-2010 at 01:55 AM.
Arise Awake And Stop Not Till The Goal Is Reached
QTP comes with a tutorial. I recommend you go through that first. This will still give you a big idea. Next step is to work on small projects on QTP and do programming using Expert view and not record and play. This will make a big difference. Remember all the big QTP expers write scripts using expert view and they write those scripts the way we write the manual test cases
So that's where you need to head to.
Thanks
Raj