in reply to Re^11: Gui Automation using guitest
in thread Gui Automation using guitest

Im just including a regular expression as i needed a window which says installation or setup or something similar thats why the * and it can have any extension so *.* . But this thing was working before..

Replies are listed 'Best First'.
Re^13: Gui Automation using guitest
by Corion (Patriarch) on Feb 15, 2011 at 10:49 UTC

    No test script can accept "or something similar". You have to be far more specific in what you mean by "something similar". * is not the way you tell Perl "or something similar". If you want to talk to Perl, you have to do it in a lanaguage it understands. See perlre or perlretut.

    That this part was "working before" is likely an accident and not something caused by your intention.

      Ok. Can u please just give me an example. Im not getting exactly how to write it. in a diff code i wrote the following which worked but in this its not. my @window = FindWindowLike( undef,"^File Download","" ); In that FindWindowLike i need a window which is an installation window of an application. The name of the window can be anything like installation.exe or setup.exe or notepad-installation.msi. As it is a randomized window i cant be sure of the name as it can be different for different applications..

        I gave you many links already. Some of them are general "problem solving" links, some of them are concrete documentation of how the tools you try to use work. I suggest that you work through all the links and only after that you come back and ask questions again.

        This is not a code writing service. We don't write your programs for you, the same way we don't collect your payment. If you are unable to use the tool without assistance, you will need to hire (and pay) somebody to use the tool for you.

        Your basic problem seems to be lack of problem analysis and problem solving skills. These skills are unrelated to any specific tool, but are the greatest tool you can have, especially in a technical field like QA or programming. I recommend starting to work on these skills. Posting requests for hand-holding does not help you to improve your problem solving skills.

Re^13: Gui Automation using guitest
by marto (Cardinal) on Feb 15, 2011 at 10:56 UTC

    You seem to be confusing wildcards for perl regular expressions, again as you've been advised you need to learn how to use the tool you've chosen. See prelre and prelrequick.

      Can u please just give me an example. Im not getting exactly how to write it. in a diff code i wrote the following which worked but in this its not. my @window = FindWindowLike( undef,"^File Download","" );In the codethat i have now wriiten,in FindWindowLike i need a window which is an installation window of an application. The name of the window can be anything like installation.exe or setup.exe or notepad-installation.msi. As it is a randomized window i cant be sure of the name as it can be different for different applications..
        Can u please just give me an example.

        The module comes with lots of examples, as does perlintro and perlre