Forum Discussion

aazimurj's avatar
aazimurj
Occasional Contributor
11 years ago

TestComplete10 fails to record script against silverlight 5


Hi there,


       I am facing an issue where TestComplete10 stops recording any user action on controls.


 


My application is running on IE10 and Silverlight 5.


My TestComplete version is 10.0.531.7


 


I have patched xap files with tcAgPatcher.exe utility as mentioned in below link:



and i can see native control information (please see attached screenshot "native-silverlight-controls.PNG")


 


Details of issue:


Following is the test which I am trying to record



  1. Open web app


  2. click on button to open popup-1


  3. popup-1 has a button called add. click on it


  4. popup-2 opens up, which actually a wizard with series of step to add item.


  5. step-1 of wizard is to select a table from list and click on next button.


  6. step-2 of wizard is to specify name and description for table and click on next button


  7. step-3 of wizard is to select columns for table.


  8. Continue towards finishing wizard



 


My problem is that TestComplete records everything till testcase step-6 and then it stops recording any useraction I perform from step-7 onwards. 


 


I have tried several things like restarting TestComplete, restarting my machine, creating new test script, creating new project suite etc.


 


I have even tried following method:


1. Record with Testcomplete till step-6 and then stop recording


2. Manually click on next so that it reaches state for step-7


3. Start recording again


 


I have used objectspy and it does recognize controls on this page of wizard.


 


The only way I could get it working is by



  1. Using object spy to get the control information of object.


  2. and then writing a jscript to click on it (or do some operation)



 


For my project more stress is given on Keyword scripting, and that does not work in this case.


 


Has anyone faced such problem?


 


If you can please guide me as to how this can be solved, it would be wonderful.


 


Many Thanks,


Aazim

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Aazim,


     


    This behavior may be specific to your app, and it's unlikely that somebody else sees the same. Could your please refer your question to our TestComplete Support team? If you sent your XAP file, that would be a big help for them in the issue investigation.

  • aazimurj's avatar
    aazimurj
    Occasional Contributor
    Hi Tanya,

            Thanks for the suggestion. I will post my query to TestComplete Support team as well.



    We are trying to evaluate TestComplete against our web products and found it very useful until now. We have been using Telerik's Test Studio so far and had quite a few problems with reliable playback. Funny thing is Test Studio does record and playback this scenario very well.



    So I don't think this is related to application. It might be the case that no one else using TestComplete has ever tried this scenario. 



    Best Regards,

    Aazim