Hi Jason,

I exposed attachFile() to DslContext. Please try the following snapshot to
see if it works for you.

http://maven.kungfuters.org/content/repositories/snapshots/org/telluriumsource/tellurium-core/0.8.0-SNAPSHOT/tellurium-core-0.8.0-20110203.043149-38.jar

Thanks,

Jian

On Wed, Feb 2, 2011 at 9:44 AM, Jian Fang <[email protected]> wrote:

> Jason,
>
> The escape should be added by the json converter and it should be removed
> by JavaScript json parser.
>
> Selenium server te5 snapshot comes with Firebug,
>
> http://code.google.com/p/aost/wiki/TelluriumJQueryFirebug
>
> Could you try your code on Firefox and check the firebug console to see the
> output message?
>
> Alternatively, I could add the attachFile method to the DslContext and let
> tellurium core pass the command through
> without json conversion.
>
> Thanks,
>
> Jian
>
>
> On Tue, Feb 1, 2011 at 7:12 PM, Jason <[email protected]> wrote:
>
>> hi all,
>>
>> For uploads, we use customDirectCall and attachFile with chrome.  I'm
>> noticing something different between selenium server behavior between .
>> 6 and .8.
>>
>> Fundamentally, I'm not able to get attachFile() working.   More
>> specifically, here's what I see:
>>
>> With the old 1.0 beta 2 server using tellurium .60, attachFile looks
>> like this:
>>
>> 15:29:09.963 INFO - Command request: attachFile[id=selectFile,
>>
>> http://www.gotdogsonline.com/chinese-foo-dog-pictures-breeders-puppies-rescue/pictures/chinese-foo-dog-0003.jpg
>> ]
>> on session d34503f7e2fb4f9887f2dd9016cb529a
>> 15:29:09.991 INFO - Getting:
>>
>> http://www.gotdogsonline.com/chinese-foo-dog-pictures-breeders-puppies-rescue/pictures/chinese-foo-dog-0003.jpg
>> 15:29:09.991 INFO - To: /var/folders/pA/pAuHSFE-Ep4RlzA3iNls8U+++TM/-
>> Tmp-/se-318157975.jpg
>> 15:29:10.853 INFO - Got result: OK on session
>> d34503f7e2fb4f9887f2dd9016cb529a
>>
>> with the latest 1.0.1 version and tellurium .80 the same test results
>> in the following:
>>
>> 16:10:16.443 INFO - Command request:
>> getBundleResponse[[{"uid":"","args":["id=selectFile","http:\/\/
>> www.gotdogsonline.com
>> \/chinese-foo-dog-pictures-breeders-puppies-rescue\/pictures\/chinese-foo-dog-0003.jpg"],"name":"attachFile","sequ":70}],
>> ] on session e263a2a24ee24435827ef4e0737355a5
>> 16:10:16.467 INFO - Got result: OK,[] on session
>> e263a2a24ee24435827ef4e0737355a5
>>
>> Note that the URL is escaped and that attachFile is not retrieving the
>> URL and, well, attaching anything.
>>
>> Any insight here?  I'm not positive that the escaping is relevant, as
>> perhaps it's handled correctly before use.  Also, don't know if it
>> might not be http://jira.openqa.org/browse/SRC-682 also.
>>
>> thanks,
>> Jas.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to