Forum Discussion

smannaluru's avatar
11 years ago

Web application record and playback

Hi,



I am using Test Complete 10.3 licensed version to automate my web application tests. 

Here is my requirement:



My team is going through the version upgrade of PHP application which doesn't have tests. We want to use test complete to create tests for the existing application before moving to upgrade. we are planning to use Record and Playback option of test complete web testing. 



I selected visualizer option "Capture images and test object Info" for my test project so that it will record images while recording the test.



Now using the below script to add the images to the regions object for the comparison while playback.


function GeneralEvents_OnLogEvent(Sender, LogParams)


{


  // Regions.AddPicture(Sys.Desktop,"p" + Project.Variables.i);


  Regions.Compare(Sys.Desktop,Regions.GetPicture("p" + Project.Variables.i));


  Project.Variables.i = Project.Variables.i + 1;


}



But because of page delays the image comparison is not working properly as the images are recorded automatically. As we don't have much time to select region check points we took this option but didn't working as expected. Attached the images of comparison and comparison result.



My question is do we have any way to record the web application testing so that it will select the entire content and compare while playback? It has to wait till the page loads while recording and while playback the tes.



Any help regarding this is much appreciated.



Thanks in Advance.



Surya.