Hello, I am trying WAPT PRO 3.1 on windows 7 x64 with the JSON module. The application I am testing returns a JSON object as follws at a given request:
I need to record several elements from de root´s ClienteUI object parameter for further requests but when trying de default JPath given by the aplication ( /"variables"/"ClienteUI"/"NombreCompleto" for instance ) I received the following error in the logs: JSONAutoVarXX = "" [Error : Unknown error]
where XX is the number of each of the variables I need from the response.
I did try to change the JPath to something more simple like ( /"creationTime" ) but I receive the same error when I test it . Since the JSON object seems correct , could it be possible that WAPT has a limit to the size of the JSON it can handle ? I tried to look into properties files to see if there was a parameter I could tweak to overcome such a problem but my knowledge is very limited.
Problem saving JSON parameter into variable
in How to solve my problem
Posted · Report reply
Hello, I am trying WAPT PRO 3.1 on windows 7 x64 with the JSON module. The application I am testing returns a JSON object as follws at a given request:
{
"creationTime" : "2013-12-16T15:09:04Z",
"description" : null,
"richDescription" : null,
"executionState" : "Active",
"state" : "STATE_RUNNING",
"lastModificationTime" : "2013-12-16T15:09:09Z",
"name" : "BPD-Negociacion Cliente:1269",
"piid" : "1269",
"processTemplateID" : "25.8175678b-9ce2-43bd-8ba8-ee202118bca4",
"processTemplateName" : "BPD-Negociacion Cliente",
"processAppName" : "Winback Retención - Vodafone",
"processAppAcronym" : "WBC2",
"snapshotName" : "1.0.44",
"snapshotID" : "2064.0d86c24d-218d-48e4-ae3a-8349760ee90f",
"branchID" : "2063.5e54b78e-c146-4fc0-8c20-a2dbaac47bca",
"branchName" : "1.0.44",
"snapshotTip" : false,
"dueDate" : "2013-12-31T08:09:00Z",
"comments" : [],
"tasks" : [
{
"activationTime" : "2013-12-16T15:09:04Z",
"atRiskTime" : "2013-12-16T16:05:46Z",
"clientTypes" : [ "IBM_WLE_Coach" ],
"completionTime" : "2013-12-16T15:09:08Z",
"containmentContextID" : "1269",
"description" : "",
"displayName" : "Step: UI-Busqueda de Cliente",
"dueTime" : "2013-12-16T16:09:04Z",
"isAtRisk" : false,
"kind" : "KIND_PARTICIPATING",
"lastModificationTime" : "2013-12-16T15:09:08Z",
"name" : "UI-Busqueda de Cliente",
"originator" : "tw_admin",
"owner" : "pruebas1",
"priority" : 30,
"startTime" : "2013-12-16T15:09:04Z",
"state" : "STATE_FINISHED",
"tkiid" : "47604",
"piid" : "1269",
"processInstanceName" : "BPD-Negociacion Cliente:1269",
"status" : "Closed",
"priorityName" : "Normal",
"assignedTo" : "pruebas1",
"assignedToDisplayName" : "pruebas1, pruebas1",
"assignedToType" : "user",
"data" : {
"variables" : {
"msgErrorGenBusqCliente" : "NONE",
"FlagCarga" : true,
"tipoIdentificacion" : "NIF",
"msgErrorIdentificacion" : "NONE",
"MSISDN" : "",
"Cliente" : {
"IdCliente" : 935,
"Spirit" : false,
"TipoIdentificacion" : "NIF",
"Identificacion" : "25323845V",
"Nombre" : "JOJON",
"Apellido1" : "CEAN",
"Apellido2" : "812060955",
"Sexo" : "Varón",
"FechaNacimiento" : "1968-03-26T11:00:00Z",
"Provincia" : "Málaga",
"Localidad" : "ANTEQUERA",
"TipoCliente" : "Particulares",
"Permanencia" : null,
"FechaInicioPermanencia" : null,
"FechaFinPermanencia" : null,
"FechaAntiguedad" : "2007-04-12T01:01:00Z",
"Arpu" : null,
"Puntos" : null,
"Segmento" : null,
"DeudaCliente" : null,
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.1c39bc62-9e76-4acd-b2e1-9ec98278ea42",
"className" : "ClienteEntity"
}
},
"estadoCargaClienteVo" : {
"identificacion" : "25323845V",
"servicio" : "PARCIAL_LOADED",
"cliente" : "LOADED",
"tipologia" : "NOT_LOADED",
"cuenta" : "PARCIAL_LOADED",
"incidencias" : "NOT_LOADED",
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.1c39bc62-9e76-4acd-b2e1-9ec98278ea42",
"className" : "EstadoCargaClienteVo"
}
},
"ClienteUI" : {
"NombreCompleto" : "JOJON CEAN 812060955",
"Identificacion" : "25323845V",
"FechaNacimiento" : "26/03/1968",
"Sexo" : "Hombre",
"LocalidadProvincia" : "ANTEQUERA - Málaga",
"TipoCliente" : "Particular",
"PermanenciaCliente" : "",
"FechaFinPermanencia" : "",
"Antiguedad" : "6 años, 8 meses y 4 días",
"Puntos" : "",
"Segmento" : "",
"DeudaCliente" : "",
"Arpu" : "",
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.0d86c24d-218d-48e4-ae3a-8349760ee90f",
"className" : "ClienteUI"
}
},
"identificacion" : "25323845V"
}
},
"serviceID" : "1.7640e19f-bcf9-4d4c-8453-f90ad1dd07b2",
"flowObjectID" : "bpdid:85ada01be9b997a4:-5376e35c:140c398dffb:-7ffc",
"nextTaskId" : null,
"collaboration" : {
"status" : false,
"currentUsers" : []
}
},
{
"activationTime" : "2013-12-16T15:09:08Z",
"atRiskTime" : "2013-12-16T15:55:47Z",
"clientTypes" : [ "IBM_WLE_Coach" ],
"completionTime" : null,
"containmentContextID" : "1269",
"description" : "",
"displayName" : "Step: Retencion Cliente",
"dueTime" : "2013-12-16T16:09:08Z",
"isAtRisk" : false,
"kind" : "KIND_PARTICIPATING",
"lastModificationTime" : "2013-12-16T15:09:08Z",
"name" : "Retencion Cliente",
"originator" : "tw_admin",
"owner" : "pruebas1",
"priority" : 30,
"startTime" : "2013-12-16T15:09:08Z",
"state" : "STATE_CLAIMED",
"tkiid" : "47605",
"piid" : "1269",
"processInstanceName" : "BPD-Negociacion Cliente:1269",
"status" : "Received",
"priorityName" : "Normal",
"assignedTo" : "pruebas1",
"assignedToDisplayName" : "pruebas1, pruebas1",
"assignedToType" : "user",
"data" : {
"variables" : {
"errorTipologia" : false,
"EventoRangoPortaFijaVuelo" : false,
"MostrarNegociacion" : "EDITABLE",
"MostrarPortaHistorica" : "EDITABLE",
"msgNoExisteServicio" : "NONE",
"MostrarPortabilidadVuelo" : "EDITABLE",
"msgErrorGenCta" : "NONE",
"FlagCargaPortaVuelo" : false,
"BotonInteracciones" : false,
"RangoPortaMovilVuelo" : null,
"errorNoExisteServicio" : "",
"BotonHistoricoMovil" : false,
"SolicitudMovilHistorica" : null,
"OcultarCuentas" : "NONE",
"ServiciosUI" : null,
"VisibilidadBotonRangoPortaMovil" : "NONE",
"PortaMovilVuelo" : null,
"msgErrorGenTip" : "NONE",
"VisibilidadBotonRangoPortaFijalHistorica" : "NONE",
"FlagConsultaServicio" : false,
"FlagCargaIncidencias" : false,
"ColumnaOcultaPortaMovil" : "",
"OcultarPortaHistorica" : "NONE",
"MostrarServicios" : "EDITABLE",
"VisibilidadCasos" : "NONE",
"MostrarTablasServicio" : "NONE",
"msgErrorMSISDN" : "NONE",
"SolicitudFijaHistorica" : null,
"BotonHistoricoFija" : false,
"ListaCuentasClienteUI" : null,
"EventoRangoPortaMovilHistorico" : false,
"OcultarNegociacion" : "NONE",
"msgParcialLoadedInc" : "NONE",
"botonRefresInc" : "NONE",
"VisibilidadSubCasos" : "NONE",
"SolicitudMovilVuelo" : null,
"VisibilidadTablaFijaHistorica" : "NONE",
"ColumnaOcultaPortaFijaHistorico" : "",
"MostrarIncidencias" : "EDITABLE",
"RangoPortaFijaHistorico" : null,
"EventoRangoPortaMovilVuelo" : false,
"OcultarServicios" : "NONE",
"FlagCargaTipologia" : false,
"PortaFijaHistorica" : null,
"FlagCargaCuentas" : false,
"estadoCargaClienteVo" : {
"identificacion" : "25323845V",
"servicio" : "PARCIAL_LOADED",
"cliente" : "LOADED",
"tipologia" : "NOT_LOADED",
"cuenta" : "PARCIAL_LOADED",
"incidencias" : "NOT_LOADED",
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.1c39bc62-9e76-4acd-b2e1-9ec98278ea42",
"className" : "EstadoCargaClienteVo"
}
},
"SolicitudFijaVuelo" : null,
"BotonCasos" : false,
"msgErrorGenInc" : "NONE",
"RangoPortaFijaVuelo" : null,
"VisibilidadInteracciones" : "NONE",
"msgParcialLoadedCta" : "NONE",
"Cliente" : {
"IdCliente" : 935,
"Spirit" : false,
"TipoIdentificacion" : "NIF",
"Identificacion" : "25323845V",
"Nombre" : "JOJON",
"Apellido1" : "CEAN",
"Apellido2" : "812060955",
"Sexo" : "Varón",
"FechaNacimiento" : "1968-03-26T11:00:00Z",
"Provincia" : "Málaga",
"Localidad" : "ANTEQUERA",
"TipoCliente" : "Particulares",
"Permanencia" : null,
"FechaInicioPermanencia" : null,
"FechaFinPermanencia" : null,
"FechaAntiguedad" : "2007-04-12T01:01:00Z",
"Arpu" : null,
"Puntos" : null,
"Segmento" : null,
"DeudaCliente" : null,
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.1c39bc62-9e76-4acd-b2e1-9ec98278ea42",
"className" : "ClienteEntity"
}
},
"MSISDN" : "",
"botonRefresCuenta" : "NONE",
"OcultarIncidencias" : "NONE",
"msgErrorTipologia" : "NONE",
"FlagCargaPortaHistorica" : null,
"Error" : null,
"EventoRangoPortaFijaHistorico" : false,
"MostrarCuentas" : "EDITABLE",
"PortaMovilHistorica" : null,
"IncidenciasUI" : null,
"ClienteUI" : {
"NombreCompleto" : "JOJON CEAN 812060955",
"Identificacion" : "25323845V",
"FechaNacimiento" : "26/03/1968",
"Sexo" : "Hombre",
"LocalidadProvincia" : "ANTEQUERA - Málaga",
"TipoCliente" : "Particular",
"PermanenciaCliente" : "",
"FechaFinPermanencia" : "",
"Antiguedad" : "6 años, 8 meses y 4 días",
"Puntos" : "",
"Segmento" : "",
"DeudaCliente" : "",
"Arpu" : "",
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.0d86c24d-218d-48e4-ae3a-8349760ee90f",
"className" : "ClienteUI"
}
},
"ListaCuentaCliente" : null,
"PortaFijaVuelo" : null,
"VisibilidadBotonRangoPortaMovilHistorica" : "NONE",
"RangoPortaMovilHistorico" : null,
"ColumnaOcultaPortaMovilHistorico" : "",
"ColumnaOcultaPortaFija" : null,
"FlagCargaServicio" : false,
"VisibilidadTablaMovilHistorica" : "NONE",
"msgErrorServicio" : "NONE",
"OcultarPortabilidadesVuelo" : "NONE",
"errorServicio" : false,
"VisibilidadBotonRangoPortaFija" : "NONE",
"BotonSubCasos" : false,
"msgErrorGenServ" : "NONE"
}
},
"serviceID" : "1.1dac311e-eff8-452f-a2af-9dd07b54f2d4",
"flowObjectID" : "bpdid:85ada01be9b997a4:7da4a2f8:14071d0f900:-66f5",
"nextTaskId" : null,
"collaboration" : {
"status" : false,
"currentUsers" : []
}
}
],
"documents" : [],
"actionDetails" : null,
"data" : "\"{\\\"",
"variables" : {
"MSISDN" : "",
"Cliente" : {
"IdCliente" : 935,
"Spirit" : false,
"TipoIdentificacion" : "NIF",
"Identificacion" : "25323845V",
"Nombre" : "JOJON",
"Apellido1" : "CEAN",
"Apellido2" : "812060955",
"Sexo" : "Varón",
"FechaNacimiento" : "1968-03-26T11:00:00Z",
"Provincia" : "Málaga",
"Localidad" : "ANTEQUERA",
"TipoCliente" : "Particulares",
"Permanencia" : null,
"FechaInicioPermanencia" : null,
"FechaFinPermanencia" : null,
"FechaAntiguedad" : "2007-04-12T01:01:00Z",
"Arpu" : null,
"Puntos" : null,
"Segmento" : null,
"DeudaCliente" : null,
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.1c39bc62-9e76-4acd-b2e1-9ec98278ea42",
"className" : "ClienteEntity"
}
},
"estadoCargaClienteVo" : {
"identificacion" : "25323845V",
"servicio" : "PARCIAL_LOADED",
"cliente" : "LOADED",
"tipologia" : "NOT_LOADED",
"cuenta" : "PARCIAL_LOADED",
"incidencias" : "NOT_LOADED",
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.1c39bc62-9e76-4acd-b2e1-9ec98278ea42",
"className" : "EstadoCargaClienteVo"
}
},
"ClienteUI" : {
"NombreCompleto" : "JOJON CEAN 812060955",
"Identificacion" : "25323845V",
"FechaNacimiento" : "26/03/1968",
"Sexo" : "Hombre",
"LocalidadProvincia" : "ANTEQUERA - Málaga",
"TipoCliente" : "Particular",
"PermanenciaCliente" : "",
"FechaFinPermanencia" : "",
"Antiguedad" : "6 años, 8 meses y 4 días",
"Puntos" : "",
"Segmento" : "",
"DeudaCliente" : "",
"Arpu" : "",
"@metadata" : {
"dirty" : false,
"shared" : false,
"rootVersionContextID" : "2064.0d86c24d-218d-48e4-ae3a-8349760ee90f",
"className" : "ClienteUI"
}
}
},
"businessData" : []
}
I need to record several elements from de root´s ClienteUI object parameter for further requests but when trying de default JPath given by the aplication ( /"variables"/"ClienteUI"/"NombreCompleto" for instance ) I received the following error in the logs:
JSONAutoVarXX = "" [Error : Unknown error]
where XX is the number of each of the variables I need from the response.
I did try to change the JPath to something more simple like ( /"creationTime" ) but I receive the same error when I test it . Since the JSON object seems correct , could it be possible that WAPT has a limit to the size of the JSON it can handle ? I tried to look into properties files to see if there was a parameter I could tweak to overcome such a problem but my knowledge is very limited.
Thank you very much.