LoadRunner Support Forum
Showing results for 
Search instead for 
Do you mean 

Stuck with GWT/GXT RPC encoding in LR scripts (Vugen 11.51)

Occasional Visitor

Stuck with GWT/GXT RPC encoding in LR scripts (Vugen 11.51)

Hello,

I'm really stuck with a problem dealing with GWT (2.1.0) (Google Web Tool)
RPC encoding of HTTP requests (POST).
I'm also use GXT java library. (2.2.1)

The recorded client is launched through Internet Explorer
and is completely developed using GWT framework and GXT.
The http body contents are encoded with EncType=text/x-gwt-rpc; charset=utf-8.

The version of Vugen is 11.51.
When is use the DFE (data format extension), vugen correlate only few parts of the script like this {DFE_BODY_10} and it's good:

 

 

web_convert_from_formatted("FormattedData="
   "<HP_EXTENSION name=\"GWT_DFE_2\">"
    "<com.hp.dfe.GWT__Request>"
     "<moduleBaseURL>https://192.168.241.99:8983/cloeor/cloeor/</moduleBaseURL>"
     "<rpcRequest>"
      "<flags>0</flags>"
      "<method>"
       "<class>fr.edf.cloeor.services.devis.DevisServiceRpc</class>"
       "<name>getDemandesGazEnCours</name>"
       "<parameter-types>"
        "<class>java.lang.Long</class>"
        "<class>fr.edf.cloeor.model.valueobject.Recherche</class>"
       "</parameter-types>"
      "</method>"
      "<parameters>"
       "<long>116501</long>"
       "<fr.edf.cloeor.model.valueobject.Recherche>"
        "<sortAsc>false</sortAsc>"
        "<filtre>"
         "<proprietes>"
          "<string>site.infoCloe.version</string>"
         "</proprietes>"
         "<valeurs>"
          "<int>1</int>"
         "</valeurs>"
         "<comparaisons>"
          "<string>eq</string>"
         "</comparaisons>"
        "</filtre>"
       "</fr.edf.cloeor.model.valueobject.Recherche>"
      "</parameters>"
      "<serializationPolicy class=\"com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy\"></serializationPolicy>"
     "</rpcRequest>"
    "</com.hp.dfe.GWT__Request>"
   "</HP_EXTENSION>", 
  "TargetParam=DFE_BODY_10", 
  LAST);

 web_custom_request("DevisService_4", 
  "URL=https://192.168.241.99:8983/cloeor/rpc/DevisService", 
  "Method=POST", 
  "Resource=0", 
  "RecContentType=text/javascript", 
  "Referer=https://192.168.241.99:8983/cloeor/accueil", 
  "Snapshot=t38.inf", 
  "Mode=HTML", 
  "EncType=text/x-gwt-rpc; charset=utf-8", 
  "Body={DFE_BODY_10}", 
  LAST);

  
But some parts of the code are not correlated:

 

web_custom_request("ImportService",
  "URL=https://192.168.241.99:8983/cloeor/rpc/ImportService",
  "Method=POST",
  "Resource=0",
  "RecContentType=text/javascript",
  "Referer=https://192.168.241.99:8983/cloeor/accueil",
  "Snapshot=t35.inf",
  "Mode=HTML",
  "EncType=text/x-gwt-rpc; charset=utf-8",
  "Body=6|0|31|https://192.168.241.99:8983/cloeor/cloeor/|1891CA144DBA98B6EAC19E3A0B43C220|fr.edf.cloeor.services.i... DES POSTES|CARVIN|M.|1-34Q2X9|SCHULLER|CLAUDE|0607898813|java.lang.Integer/3438268394|En cours|java.util.HashSet/1594477813|fr.edf.cloeor.model.CloeOrVersion/2680103767|1|2|3|4|2|5|6|5|0|7|8|8|9|0|10|ULhHH74|10|ULhHH74|11|ccV|12|9|0|1|0|10|{CorrelationParameter_10}|0|11|BdU|13|14|2|0|15|9|16|17|0|0|0|0|0|0|0|0|0|0|0|0|-3|11"
  "|ccV|18|19|17|0|20|0|0|0|0|0|21|22|23|24|0|25|26|27|28|0|0|28|1|-17|18|29|-18|-17|0|-18|0|0|0|30|0|30|0|30|0|30|0|31|28|16|-17|-17|0|13|0|0|0|",
  EXTRARES,
  "URL=../gxt/images/default/grid/loading.gif", "Referer=https://192.168.241.99:8983/cloeor/accueil", ENDITEM,
  LAST);

 

  
Vugen recorded also the request in a "BodyBinary" but the DFE chain don't recognize it :

 

 

 

web_custom_request("DemandeService", 
  "URL=https://noeyy4jr.noe.edf.fr:8983/cloeor/rpc/DemandeService", 
  "Method=POST", 
  "Resource=0", 
  "RecContentType=text/javascript", 
  "Referer=https://noeyy4jr.noe.edf.fr:8983/cloeor/accueil", 
  "Snapshot=t41.inf", 
  "Mode=HTML", 
  "EncType=text/x-gwt-rpc; charset=utf-8", 
  "BodyBinary=6|0|215|https://noeyy4jr.noe.edf.fr:8983/cloeor/cloeor/|9F8101614C6DCD4E50FB3729F0D5B5F6|fr.edf.cloeor.servi...
  "rO0ABXcEAAAAAA==|java.lang.Long/4227064769|fr.edf.cloeor.utilisateurs.UtilisateurProfil/515457474|fr.edf.cloeor.model.Operation/614384093|fr.edf.cloeor.model.Site/4069005421|fr.edf.cloeor.model.Comparaison/2600671824|java.util.HashSet/1594477813|fr.edf.cloeor.model.Devis/659470322|fr.edf.cloeor.model.cloe.no.DevisCloe/3077040411|fr.edf.cloeor.model.cloe.no.CoordonneesFournisseur/2483992298|fr.edf.cloeor.model.Adresse/472581106|91000|28|COURS BLAISE PASCAL|EVRY|
  "compNbCadran|CFN F130B2,CFN F130B1,MES F120B2,|fr.edf.cloeor.model.RecevabilitesJrulesElec/489039291|fr.edf.cloeor.model.RecevabiliteJrules/3296424385|KO|OK|OK + Warning|fr.edf.cloeor.model.RecevabilitesJrulesGaz/4139767418|fr.edf.cloeor.model.RecevabiliteJrulesOmegaAvecPresta/734626334|fr.edf.cloeor.model.RecevabiliteJrulesOmega/2757224804|fr.edf.cloeor.model.RecevabiliteJrulesOmegaMes/3280174560|1|2|3|4|1|5|5|0|0|0|6|UAaL1zh|0|0|0|0|0|0|7|0|0|8|0|0|0|0|0|9|6|UAaL1zh|10|1|0|0|0|11|0|0|0|0|0|10|0|"
  "0|0|-8|0|0|0|0|0|6|UBLWBsA|0|-1|0|0|0|0|0|0|0|0|0|-8|0|0|-8|0|0|0|0|0|12|0|0|0|0|0|0|13|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|14|15|0|1|0|6|UAV4U8L|0|16|BMb|17|18|2|0|0|19|4|19|18|0|20|15|21|1|0|-17|0|6|UAaLO4v|-1|22|1|-1|23|15|0|6|UAaLO4v|6|UAaLO4v|16|YCk|14|15|0|1|0|6|UAV4U8L|0|16|BMb|17|-13|0|24|15|25|26|0|27|0|0|0|28|0|29|30|31|32|0|-20|16|YCk|33|34|26|0|35|0|0|0|36|0|37|38|39|40|0|41|42|43|44|1|44|0|-34|0|33|45|-33|-33|0|-34|0|0|0|0|0|0|0|46|44|15|-34|44|5|16|DT2B|-24|47|15|22|2|48|15|49|50|51|6|"
  "QzWDNMA|52|53|54|55|0|56|57|58|59|60|16|BxM2|-39|0|0|48|15|49|61|62|6|QzWDNMA|63|64|65|55|66|67|68|69|59|70|16|BxM1|-39|0|0|16|DT2B|0|71|72|73|-16|74|75|76|0|77|78|49|79|44|2|80|36|81|0|82|0|82|83|84|85|86|0|87|6|Qmy47GA|6|QpXeEMA|0|0|0|0|0|0|88|89|0|90|91|92|93|6|Sb36JWA|94|0|95|96|0|0|0|0|6|QpXeEMA|6|Qkn1_2A|6|QpXeEMA|6|QzWDNMA|97|98|0|0|0|0|11|99|0|0|0|0|100|6|QpXeEMA|97|98|0|0|0|0|101|102|103|104|105|106|107|108|100|6|Qkn1_2A|11|99|0|0|0|0|94|109|110|104|105|106|94|111|100|0|0|0|0|0|0|0|0|0|0|"
  "0|0|0|0|0|100|0|0|0|0|0|0|0|0|0|0|0|0

 

  
Do you have an explication or a solution ?
I have to use vugen with a lot of vusers and i can't correlate all the parameters between the pipes by myself (too many...)

Thank you.

1 REPLIES
Valued Contributor

Re: Stuck with GWT/GXT RPC encoding in LR scripts (Vugen 11.51)

can you try turning off the auto-correlation for 

{CorrelationParameter_10}?
Pavankumar