Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all,

I am a beginner in Perl. Just wrote simple Perl scripts (hello, array etc) from the O'Rielly book. I have to write automated test scripts in perl for our applications.
I am trying to run the sample PERL scripts (Sample1.pl) in the Grinder folder (BrewToolsSuite3 3.0) from Cygwin shell. Got error message that it cannot find "use" command.

// Cywin Error :

$ ./Sample1.pl
./Sample1.pl: line 10: use: command not found
./Sample1.pl: line 11: syntax error near unexpected token `('
./Sample1.pl: line 11: `use enum qw( AVK_ASTERISK=1000 AVK_NUMBER_SIGN AVK_SELECT AVK_UP AVK_DOWN AVK_LEFT AVK_RIGHT AVK_SEND AVK_CLR AVK_END);'

2 Questions:

1) I have researched in the forum and in the docs provided with the Brew tools kit. Then I found that I have to dowdload Activeperl 5.6.1.638 to make it work. Ok. So I downloaded and installed it using "Installer.bat" file came with the Windows package. But I am a beginner in Perl . I do not know how to use ActivePerl IDE. How do I execute Grider Sample script using ActivePerl?

2) The second issues, I followed the direction in Grinder Help API to execute the sample perl script(Sample1.pl from Grinder folder) on LG VX7000. I followed "Using The Grinder with Perl scripting" and ActivePerl 5.6 and Cygwin Perl are in my PC. When I Start the Grinder from the shortcut menu, it just opens the perl script in notepad and nothing else. Can anybody tell me how do I proceed from here using Cygwin?

Please help me :confused: . Thanks in advance.

Anybody? Brew Support??? :confused:
Its really important.
Thanks.

Anybody? Brew Support??? :confused:
Its really important.
Thanks.

Hi Friends ,
I am new to Brew.I need to develope Grinder scripts to test my application.
Can any body help me by giving example Grinder perl scripts or any related sites ??
Thankx in advance...
Satish

Hi Friends ,
I am new to Brew.I need to develope Grinder scripts to test my application.
Can any body help me by giving example Grinder perl scripts or any related sites ??
Thankx in advance...
Satish

1. BREW's grinder Perl API is picky about the version of the perl engine installed in your system.You may want to try the following, and I found that works reliably:
a. Install Active perl, not the latest version, last but one release version of Active Perl (I think it is 5.6.x)
b. Sample grinder perl script can be found in your BREW tools directory. From your windows command prompt try to run any perl script and see if you are successful, if not then your path setting may not be right.

1. BREW's grinder Perl API is picky about the version of the perl engine installed in your system.You may want to try the following, and I found that works reliably:
a. Install Active perl, not the latest version, last but one release version of Active Perl (I think it is 5.6.x)
b. Sample grinder perl script can be found in your BREW tools directory. From your windows command prompt try to run any perl script and see if you are successful, if not then your path setting may not be right.

ruben wrote:1. BREW's grinder Perl API is picky about the version of the perl engine installed in your system.You may want to try the following, and I found that works reliably:
a. Install Active perl, not the latest version, last but one release version of Active Perl (I think it is 5.6.x)
b. Sample grinder perl script can be found in your BREW tools directory. From your windows command prompt try to run any perl script and see if you are successful, if not then your path setting may not be right.
Thanks Ruben,
I really appreciate your answer. I actually downloaded ActivePerl 5.6. I think you have already worked with it. I am new to this IDE. I am reading the docs comes with it. So far I have problem for installing the Modules package from PPM. I think it wont work without the modules package, right?
I have another question. So, Cygwin wont be any helpful for this purpose , is this correct? Because I wrote my own script and WAS ABLE to run with "Use" command in it (ie, use strict) from both command prompt and from Cygwin as well. But When I tried to run the sample scripts from BREW tools which they use "use GrinderPl"; then Cywin complained that it cannot find "use" command. I also tried to run that script only with "use strict" and also got the same error(use not found). Any idea why this happened?
Thank you all for your time.

ruben wrote:1. BREW's grinder Perl API is picky about the version of the perl engine installed in your system.You may want to try the following, and I found that works reliably:
a. Install Active perl, not the latest version, last but one release version of Active Perl (I think it is 5.6.x)
b. Sample grinder perl script can be found in your BREW tools directory. From your windows command prompt try to run any perl script and see if you are successful, if not then your path setting may not be right.
Thanks Ruben,
I really appreciate your answer. I actually downloaded ActivePerl 5.6. I think you have already worked with it. I am new to this IDE. I am reading the docs comes with it. So far I have problem for installing the Modules package from PPM. I think it wont work without the modules package, right?
I have another question. So, Cygwin wont be any helpful for this purpose , is this correct? Because I wrote my own script and WAS ABLE to run with "Use" command in it (ie, use strict) from both command prompt and from Cygwin as well. But When I tried to run the sample scripts from BREW tools which they use "use GrinderPl"; then Cywin complained that it cannot find "use" command. I also tried to run that script only with "use strict" and also got the same error(use not found). Any idea why this happened?
Thank you all for your time.

OK, So I downloaded ActivePerl 5.6x and tried to run Sample1.pl from Brew Tools 3.0 folder. I got the following error message:
C:\BREW\The Grinder>Sample1.pl
Can't locate auto/GrinderPl/InitPerlMod.al in @INC (@INC contains: C:/NewPerl/li
b C:/NewPerl/site/lib .) at C:\BREW\The Grinder\Sample1.pl line 28
By the way, C:/NewPerl is my ActivePerl directory in which I have installe ActivePerl. So my question is , do I have to copy the "The Grinder" folder from Brew Tools3.0 in /NewPerl/lib or /bin folder or anywhere else to make it work?
I have tried other Perl scripts (which is not from BREW tools suite) and it works from this directory. :(
Any help/advice would be appreciated.
Thanks

OK, So I downloaded ActivePerl 5.6x and tried to run Sample1.pl from Brew Tools 3.0 folder. I got the following error message:
C:\BREW\The Grinder>Sample1.pl
Can't locate auto/GrinderPl/InitPerlMod.al in @INC (@INC contains: C:/NewPerl/li
b C:/NewPerl/site/lib .) at C:\BREW\The Grinder\Sample1.pl line 28
By the way, C:/NewPerl is my ActivePerl directory in which I have installe ActivePerl. So my question is , do I have to copy the "The Grinder" folder from Brew Tools3.0 in /NewPerl/lib or /bin folder or anywhere else to make it work?
I have tried other Perl scripts (which is not from BREW tools suite) and it works from this directory. :(
Any help/advice would be appreciated.
Thanks

Hi
1) I am using LGE_VX8100 Emulator.For this emulator where i can get the keymapfile ??
2)Do anybody know the example scripts for Grinder apart those that present in the sdk ??
Can any body help me out..
Thanx in Advance
Satish

Hi
1) I am using LGE_VX8100 Emulator.For this emulator where i can get the keymapfile ??
2)Do anybody know the example scripts for Grinder apart those that present in the sdk ??
Can any body help me out..
Thanx in Advance
Satish

Okay... Finally I could crack down to start the grinder perl scripts :D .
Thanks all for helping me out ; specially to Ruben and lspenard.
Yaaaaahhhaaa ;)

Okay... Finally I could crack down to start the grinder perl scripts :D .
Thanks all for helping me out ; specially to Ruben and lspenard.
Yaaaaahhhaaa ;)

Hi friends ,
please respond to my queries too.It's really urgent.
farhana , if you have sample perl scripts other than which the SDK provides,plz share them.
Thanx in advance
Satish

Hi friends ,
please respond to my queries too.It's really urgent.
farhana , if you have sample perl scripts other than which the SDK provides,plz share them.
Thanx in advance
Satish

satishbabu wrote:Hi friends ,
please respond to my queries too.It's really urgent.
farhana , if you have sample perl scripts other than which the SDK provides,plz share them.
Thanx in advance
Satish
Hi Satish,
I am working on my scripts now. This relates to our applications' need. The question is what is your goal? I am getting help from the smaple scripts and my knowledge to incorporate things.
Thanks.
-Farhana

satishbabu wrote:Hi friends ,
please respond to my queries too.It's really urgent.
farhana , if you have sample perl scripts other than which the SDK provides,plz share them.
Thanx in advance
Satish
Hi Satish,
I am working on my scripts now. This relates to our applications' need. The question is what is your goal? I am getting help from the smaple scripts and my knowledge to incorporate things.
Thanks.
-Farhana

farhana wrote:OK, So I downloaded ActivePerl 5.6x and tried to run Sample1.pl from Brew Tools 3.0 folder. I got the following error message:
C:\BREW\The Grinder>Sample1.pl
Can't locate auto/GrinderPl/InitPerlMod.al in @INC (@INC contains: C:/NewPerl/li
b C:/NewPerl/site/lib .) at C:\BREW\The Grinder\Sample1.pl line 28
Perl needs to find the Grinder dll files in order to use the Grinder library calls. There are two simple ways to do this: either copy the dlls into your working directory, or insert a "use lib" line into your perl script, like
use lib "c:\\tools\\The Grinder";
or wherever you installed it.

farhana wrote:OK, So I downloaded ActivePerl 5.6x and tried to run Sample1.pl from Brew Tools 3.0 folder. I got the following error message:
C:\BREW\The Grinder>Sample1.pl
Can't locate auto/GrinderPl/InitPerlMod.al in @INC (@INC contains: C:/NewPerl/li
b C:/NewPerl/site/lib .) at C:\BREW\The Grinder\Sample1.pl line 28
Perl needs to find the Grinder dll files in order to use the Grinder library calls. There are two simple ways to do this: either copy the dlls into your working directory, or insert a "use lib" line into your perl script, like
use lib "c:\\tools\\The Grinder";
or wherever you installed it.

cirion wrote:Perl needs to find the Grinder dll files in order to use the Grinder library calls. There are two simple ways to do this: either copy the dlls into your working directory, or insert a "use lib" line into your perl script, like
use lib "c:\\tools\\The Grinder";
or wherever you installed it.
Thanks a lot for the tip. :)

cirion wrote:Perl needs to find the Grinder dll files in order to use the Grinder library calls. There are two simple ways to do this: either copy the dlls into your working directory, or insert a "use lib" line into your perl script, like
use lib "c:\\tools\\The Grinder";
or wherever you installed it.
Thanks a lot for the tip. :)