rsrini7 / flexmonkey

Automatically exported from code.google.com/p/flexmonkey
0 stars 0 forks source link

FlexMonkey Code Generation Syntax Error #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
==================================
FlexMonkey Use Cases:

1) App under test and MonkeyAgent on remote server?
2) App under test and MonkeyAgent local?
3) App under test loaded from local file system into FlexMonkey Target SWF
window?
4) ANT run with TestLauncher?
5) ANT run with TestRunner?
6) Other? (describe)

Your Use Case: [1-6] : 2

If you use the MonkeyAgent, are you running it in the FlexBuilder Debugger?
(yes/no) no
==================================

What steps will reproduce the problem?
1. If any of automation name is in single quote in our application
2.
3.

What is the expected output? What do you see instead?
Syntax Error comes when i generate the code

What version of the Flex SDK are you using?
Flex SDK 3.1

What version of the FlexMonkey are you using?
FlexMonkey 1.0 Beta 2

What version of the MonkeyAgent are you using? (if applicable)

On what operating system?
Windows XP SP3

Please provide any additional information below.

Original issue reported on code.google.com by rupamkha...@gmail.com on 18 Aug 2009 at 4:40

GoogleCodeExporter commented 9 years ago
I found one problem in code generation in flexmonkey which i logged in as issue 
no
67, when i generate the code through flex monkey, i get one line as syntax error
which is given below:-

new UIEventMonkeyCommand('Select', 'recording', 'automationName',
['Default Searches>Today's Calls', '1', '0']),

In this line i get a problem, since the code generated by flexMonkey
take single quotation, in my application one of my accordion value
name is Today's Call ( it has one single Quote ), so when the code is
generated it gets 2 single quote for this it says syntax error, how
can i eliminate it, do i need to change in my UI wherever my string
contains single quote, coz in the above code if you see the line
['Default Searches>Today's Calls',   here actually Default Searchers
gets close at the end of Today' and rest of the string which is 's
Calls' is being eliminated,

I hope this helps in what i am trying to say, 

Original comment by rupamkha...@gmail.com on 18 Aug 2009 at 4:43