Forum Discussion

morde's avatar
morde
Contributor
12 years ago

Unable to handle a "Flash" process

Hi there.



I am testing a web-app which works on Flex. All the object were mapped successfully on IE (after installing the debugger plugin) but when I test this app on a "full screen mode" - instead of the IE process ("browser") - the app is re-open as a new "flash process" and makes my object not-recognized.



How can I set my objects to fit both "browser" processes and "flash" processes?



Thanks

8 Replies

  • maximojo's avatar
    maximojo
    Frequent Contributor
    If it's the same thing I experienced it seems that flash creates a special overlay object and "projects" the normal interface onto it. This object doesn't have all of the components embedded within it but (my guess) translates the e.g. clicks back to the original flash components.



    That was my guess at the time. If anyone knows any different I'm happy to hear it.
  • Thanks,

    How did you handle it?



    I'll be happy to hear any idea :)
  • maximojo's avatar
    maximojo
    Frequent Contributor
    What are you trying to do with it? All I had to do was test that the app could go to fullscreen and then revert back to normal.



    I assume you are doing more than that? :)
  • Hi Mark,



    I am trying to activate some of the functionalities I had on regular-screen mode - on a full screen: Click some buttons (that were clicked on the regular-screen)



    Thanks :)
  • maximojo's avatar
    maximojo
    Frequent Contributor
    What problems are you having? Just clicking the buttons? Did you want to do screen comparisons?



    If you need to click on the buttons I don't know if there's much more you can do than record the clicks as normal in record mode and then play them back performing screen checkpoints as you need to.



    You won't be able to grab any strings from that screen as far as I know.



    But what functionality do you need to test exactly?
  • Hi Mark.



    I have an application that works both on Full and regular screen and I need to test the functionality of some buttons (play, pause, etc...) on both conditions.



    the buttons were mapped on the regular screen mode and obviously have the same mapping propertries and values. but... when I try to commit any method on one of the object when the app is at full-screen mode (such as button.Click) - the TC throws an error that it can't find the object. and indeed.... the objects were mapped under "browser", but on a full screen mode it's not a browser process - it's a flash process (which I wasn't able to map)



    I am quite sure that mapping the flash process will solve my problem. Can you guide me how to do so?



    Thanks.

    mor
  • maximojo's avatar
    maximojo
    Frequent Contributor
    Hi Mor,



    Hmmm I'm not sure if mapping the flash process will help but you should be able to see it in the list of proceses Object Browser (at least when a process is open on FireFox, not sure about the other browsers). If you don't see the flash process click on the "Display Process Filter Window" and make sure it's checked.



    Peronally I would use image comparison to determine if e.g. a button press occurred.  I can't think of any straightfoward way though perhaps by clicking on the "full screen" you can check properties on the original flash buttons, etc. I'm not sure if that will work though.



    But if mapping the flash process helps please let me know!

  • Hi Mor,


     


    As far as I understand, the full-screen mode means that the self-executed Flash application is run, right? In this case, you can try installing the standalone Flash Player version - this may make TestComplete recognize elements in the app.