Hello Wim,
you were right. Our test tool doesn't record the form post parameter correctly. 
But when we add the ok-button signal manualy, the file will be uploaded 
successfully.

Thanks,
Sven

-----Ursprüngliche Nachricht-----
Von: Wim Dumon [mailto:[email protected]] 
Gesendet: Montag, 22. November 2010 14:15
An: [email protected]
Betreff: Re: [Wt-interest] Failed to use WFileUpload via test-tool (VS Team 
System)

Can you send me the request, the full headers, and the content of the POST 
request, both in a use case with the browser and one with the test tool?
How does the test tool's request compare to the browser's, with respect to the 
POST data?

Assuming that you're testing Wt in non-JS mode:
The POST data must be correct, and include all form fields, otherwise it may 
not pass Wt's security checks. Additionally, there must also be a signal, that 
explains why the upload action took place (e.g. by clicking an upload button, 
but any valid signal will do). Does the response of the POST contain any data? 
If there is no signal, Wt assumes the page is refreshing, and simply sends the 
current contents.

BR,
Wim.

2010/11/22 Knoblich Sven <[email protected]>:
> Hello Wim,
> As close as I can figure it out, the request is initiated correctly. The 
> whole filecontent is stored within the request. The only problem is, that 
> nothing more happened. It seems to me, that witty doesn't handle this request 
> at all.
>
> Any ideas?
> Sven
>
>
> -----Ursprüngliche Nachricht-----
> Von: Wim Dumon [mailto:[email protected]]
> Gesendet: Montag, 22. November 2010 11:31
> An: [email protected]
> Betreff: Re: [Wt-interest] Failed to use WFileUpload via test-tool (VS 
> Team System)
>
> Hey Sven,
>
> I'm not familiar with Visual Studio Team System. If you look with a packet 
> sniffer (or in the server log), do you see that the POST request with the 
> file contents is initiated? Is the 'file not found'
> because the test environment doesn't find the file? Does it work with a 
> simple (static) web page with a file upload button?
>
> Best regards,
> Wim.
>
> 2010/11/18 Knoblich Sven <[email protected]>:
>> Hello,
>> We have a problem with the test of WFileUpload. We are using Visual Studio 
>> Team System (Test Edition)and tried all three different ways which 
>> mentionend on msdn.com.
>> http://blogs.msdn.com/b/edglas/archive/2008/08/05/how-to-upload-a-fil
>> e -in-a-web-test.aspx But we are still unable to upload a file 
>> automaticly.
>>
>> The request for the upload sends three FormPostParameter:
>> -request={{$HIDDEN1.request}}
>> -wtd={{$HIDDEN1.wtd}}
>> -File Upload Parameter( Name: Test, FileName: xyz.txt)
>>
>> We make sure, that the file-upload read the correnct data, by rename the 
>> source-file. As expected the testtool give us the correct message: "Request 
>> filed:...could not found file 'D:\upload\xyz.txt'".
>>
>> Currently we are out of ideas how to access the fileupload throw our 
>> testtool. It seems to me, that the signal-mechanism doesn't run correctly.
>>
>>
>> Any ideas?
>>
>> Many thanks in advance,
>> Sven
>> ---------------------------------------------------------------------
>> -
>> -------- Beautiful is writing same markup. Internet Explorer 9 
>> supports standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 
>> & L3.
>> Spend less time writing and  rewriting code and more time creating 
>> great experiences on the web. Be a part of the beta today 
>> http://p.sf.net/sfu/msIE9-sfdev2dev
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
> ----------------------------------------------------------------------
> -------- Beautiful is writing same markup. Internet Explorer 9 
> supports standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating 
> great experiences on the web. Be a part of the beta today 
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
> ----------------------------------------------------------------------
> -------- Beautiful is writing same markup. Internet Explorer 9 
> supports standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 
> & L3.
> Spend less time writing and  rewriting code and more time creating 
> great experiences on the web. Be a part of the beta today 
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports standards for 
HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great 
experiences on the web. Be a part of the beta today 
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to