jagdeepjain / sfapi

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

verifyFlexDataGridRowCount thru HTML test throws ArgumentError #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running thru an HTML test, I run a verifyFlexDataGridRowCount against
the dataGrid object in the test application
<tr>
    <td>verifyFlexDataGridRowCount</td>
    <td>dataGrid</td>
    <td>3</td>
</tr>

What is the expected output? What do you see instead?

-The following is returned by the debugger:ArgumentError: Error #1063:
Argument count mismatch on
sfapi.commands::DataGridCommands/getFlexDataGridRowCount(). Expected 1, got 2.
-I added an add'l arguement in the
getFlexDataGridRowCount(id:String,foo:String) and this seems to have fixed it.

What version of the product are you using? On what operating system?
-This was done using the latest source code

Please provide any additional information below.

-The "foo" arguement that gets sent in has a value of "Undefined", so I
don't know where it comes from.

Original issue reported on code.google.com by bkur...@gmail.com on 14 Dec 2009 at 6:13

GoogleCodeExporter commented 8 years ago
I think, to solve this, we need to look at two instances.

1. how the user-extensions.js has been configured in RC Server to call the 
getFlexDataGridRowCount API. If I am right, this method has been called with 2 
parameters. For this, you dont need to modify the project API. Instead, modify 
the 
user-extensions.js

2. How many parameters you are sending to RC server for this API. If you send 2 
params, then this issue will occur. RC Server implementation is such that, if 
the 
parameters are found, then it calls the two parameters implementation of that 
API.

I faced the same issue for API "getFlexGlobalPosition". I was calling this API 
along 
with a empty parameter and because of that, I was getting the same error. I did 
the 
required changes and now it works. ;) 

Original comment by sar...@gmail.com on 22 Dec 2009 at 7:30

GoogleCodeExporter commented 8 years ago
Sorry its taken me so long to respond.  I was out on vacation for a bit.  

I was seeing the above problem not w/ Selenium RC but when running thru 
Selenium IDE.
 The user-extensions.js file is only sending a single parameter to the method:

Selenium.prototype.getFlexDataGridRowCount = function(id) {
    return this.callFlexMethod('getFlexDataGridRowCount', id);
};

Do you think there is something else in the Selenium core used by the IDE that 
is
sending an additional parameter?

Original comment by bkur...@gmail.com on 4 Jan 2010 at 3:22

GoogleCodeExporter commented 8 years ago

Original comment by yugan...@gmail.com on 1 Jul 2010 at 10:15

GoogleCodeExporter commented 8 years ago
Fixed by taking two parameters

Original comment by yugan...@gmail.com on 2 Jul 2010 at 12:27