Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to automate without recording
#1
Not Solved
Is it possible to automate without recording
Reply
#2
Not Solved
Hi Lalitha,
Yes it is definitely possible that automation script can be prepared without recording the application. And it is advisable that for better maintainability and efficiency of the code you should not go for "Record/Playback" feature.
Prepared scripts using "Record and playback"are difficult to maintain because:
1) It closely ties with the flow and interface presented by the GUI.
2)Highly relies on the state, objects, circumstances on which script been recorded.
3) input information gets Hardcoded, so when those infos are no longer valid then you need to update the script with latest value.

Please let me know if you have any other relevant doubts.

Thanks,
Nilanjan.
Reply
#3
Not Solved
Hi nilanjans,

Thanks for your reply.

Can you explain me how to do that without recording.

Thanks iin advance.
Reply
#4
Not Solved
Hi ,

First add the required object to the object repository.
Ex: If you want to automate 'Login' functionality of the GMAIL page.
1. Add 'Username' , 'password' textboxes and 'LogIn' button into the object repository.
2. Then in the expert view type (While typing itself QTP suggest you the added object)
Ex:
Code:
Browser("Name that is added").page("Page name").webedit("Username").set "
Set the user name which u want"

Similary for the Password text box , then to'click the LOGIN button' ,

Code:
Browser("Name that is added").page("Page name").webbutton("login").click



Like this you can write the code which you wanted , usually while developing script we wont used 'record and playback' , mostly people write thier own code than using the record and playback.

Thanks,
Harish SHenoy
Reply
#5
Not Solved
Well, i dont see any issue with record and playback. You can always record your script and parameterize/modify them for reusability. Recording will automatically add objects to OR thus saving the extra time spent on adding object to OR manually.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Analog Recording & Normal Recording Shama Ahsan 1 3,607 05-03-2011, 02:38 PM
Last Post: Shama Ahsan

Forum Jump:


Users browsing this thread: 1 Guest(s)