Kann jemand ein praktisches Beispiel für das Hochladen einer Zip-Datei mithilfe der Python-Anforderungsbibliothek in Robot Framework bereitstellen?Zip-Datei mit der REST-Anforderungsbibliothek in Robot Framework hochladen
Ich habe eine Menge von Beispielen versucht, aber das Beste, was ich ist
// the zip file, I have tried both ways to get the data
${pathZipFile} Set Variable ${EXECDIR}\\Files\\File.zip
${fileData} Get Binary File ${pathZipFile}
${fileData} Get File path=${pathZipFile} encoding=CP437
&{dictFiles} Create Dictionary CDMZipFile=${fileData}
// the request
&{headers} Create Dictionary Content-Type=multipart/form-data Accept=application/json
Create Session alias=${sessionId} url=${url} headers=${headers}
${resp} Put Request alias=${sessionId} uri=${uri} files=${dictFiles} headers=${headers}
Post einige Beispiele ... 2 Zeilen sind ein bisschen zu wenig, um jemandem zu helfen .. – ivoruJavaBoy