Micro Focus QTP (UFT) Forums
Test Automation Framework - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Test Automation Framework (/Thread-Test-Automation-Framework)



Test Automation Framework - dtandel - 06-09-2011

Hi All,

I am new to QTP, have some automation experience though.

I had a question regarding the Record & Playback (R & P) feature of QTP.

Currently there are VB scripts that follow the linear framework (only use R & P). What are the general steps that are followed to migrate to a hybrid framework (keyword driven/data driven) from the existing one.

Request you guys to help provide with some guidelines for the same.

Thanks!

D


RE: Test Automation Framework - Skepsis - 06-09-2011

One way to 'migrate' is to just use the R&P to record small 'blocks' of interactions and then call these interaction blocks, stick them in separate methods in a library then call them from a test in sequence.

After this you could paramatise the details of the the block or modify each block to pass n data from the test so that it can be used in more than one instance. E.g. pass in the web page address to a generic 'goto web page' block.

Then put the steps into a spreadsheet and data drive the sequence from there. as per the fine videos on this site.

You can only keyword/data driven tests when you have done the underlying code blocks that make up a full test. This is all up front work that pays back later down the line.




RE: Test Automation Framework - dtandel - 06-13-2011

Thanks! that helps.Smile

D