can anyone explain how to write the script in qtp???
i'm totally new to this and being asked to write an script:confused: all i know is that we don't write script, it generates by executing files.
Printable View
can anyone explain how to write the script in qtp???
i'm totally new to this and being asked to write an script:confused: 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
[LIST][*]Identify the flow of scripts[*]Start the Record and Playback feature[*]Enhance the scripts in the Expert view keeping in mind the following features[*][INDENT]Re-usability - Using functions[*]Simplicity[*]Readability - Using appropriate comments[*]Defensive Programming - Using Recovery Scenario[*]Modularity - Using library files[/INDENT][/LIST]
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.
thanks for your help guys.!
Hi,
Its very easy write scripts in QTP. Fist of all let me know, for which functionality u have to write the script. Do u know VB.Script?
[QUOTE=abraham_ahmed;7715]can anyone explain how to write the script in qtp???
i'm totally new to this and being asked to write an script:confused: all i know is that we don't write script, it generates by executing files.[/QUOTE]
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
[QUOTE=abraham_ahmed;7715]can anyone explain how to write the script in qtp???
i'm totally new to this and being asked to write an script:confused: all i know is that we don't write script, it generates by executing files.[/QUOTE]
Hi abharam,
Don't worry in QTP you have an option called step generator, through that you can write scripts easily.
Select Insert-> Step generator from QTP.
Thanks,
Deepa
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