Commit 8f15cdae authored by Daniel Abarca's avatar Daniel Abarca

Entrega - funcion actualizacion - avance 1

parent ad7c7b00
Pipeline #386 failed with stages
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
...@@ -14,7 +14,7 @@ Variables ../../Variables/variables.py ...@@ -14,7 +14,7 @@ Variables ../../Variables/variables.py
VALIDAR INDIVIDUOS VALIDAR INDIVIDUOS
[Arguments] ${data_excel} ${flag_reporte} ${reporte} [Arguments] ${data_excel} ${flag_reporte} ${reporte}
log to console ${data_excel} # log to console ${data_excel}
${datos}= get from list ${data_excel} 4 ${datos}= get from list ${data_excel} 4
${campos}= get from list ${data_excel} 3 ${campos}= get from list ${data_excel} 3
${llave_campos}= get from list ${data_excel} 5 ${llave_campos}= get from list ${data_excel} 5
...@@ -23,14 +23,15 @@ VALIDAR INDIVIDUOS ...@@ -23,14 +23,15 @@ VALIDAR INDIVIDUOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=individual.identification=='${item}[4]*' &{body}= create dictionary filterExpression=individual.names=='${item}[1]*'
${ID}= Obtener_ID ${header} ${body} ${session} /service/config-service/party/page ${ID}= Obtener_ID ${header} ${body} ${session} /service/config-service/party/page
${valores}= Obtener data ${header} ${ID} ${session} /service/config-service/party ${valores}= Obtener data ${header} ${ID} ${session} /service/config-service/party
# log to console ${valores} # log to console ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Gestor Agentes - Individuos PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Gestor Agentes - Individuos PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR ORGANIZACIONES ...@@ -22,6 +22,7 @@ VALIDAR ORGANIZACIONES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=organization.name=='${item}[1]*';(type==O) &{body}= create dictionary filterExpression=organization.name=='${item}[1]*';(type==O)
...@@ -30,6 +31,6 @@ VALIDAR ORGANIZACIONES ...@@ -30,6 +31,6 @@ VALIDAR ORGANIZACIONES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Gestor Agentes - Organización PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Gestor Agentes - Organización PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR ROLES ...@@ -22,6 +22,7 @@ VALIDAR ROLES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=name=='${item}[1]*' &{body}= create dictionary filterExpression=name=='${item}[1]*'
...@@ -30,6 +31,6 @@ VALIDAR ROLES ...@@ -30,6 +31,6 @@ VALIDAR ROLES
log to console ${valores} log to console ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Roles PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Roles PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,12 +22,14 @@ VALIDAR CALENDARIOS ...@@ -22,12 +22,14 @@ VALIDAR CALENDARIOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=id=='${item}[1]*' &{body}= create dictionary filterExpression=id=='${item}[1]*'
# LOG TO CONSOLE ${body} # LOG TO CONSOLE ${body}
${ID}= Obtener_ID ${header} ${body} ${session} /service/config-service/calendar/page ${ID}= Obtener_ID ${header} ${body} ${session} /service/config-service/calendar/page
${valores}= Obtener data ${header} ${ID} ${session} /service/config-service/calendar ${valores}= Obtener data ${header} ${ID} ${session} /service/config-service/calendar
...@@ -36,6 +38,6 @@ VALIDAR CALENDARIOS ...@@ -36,6 +38,6 @@ VALIDAR CALENDARIOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Calendario PRIMARIA ${flag_reporte} ${reporte} ${valores_excepciones} validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Calendario PRIMARIA ${flag_reporte} ${reporte} ${valores_excepciones} ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR CATALOGOS ...@@ -22,6 +22,7 @@ VALIDAR CATALOGOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
&{body2}= create dictionary currentPage=0 itemsPerPage=50 &{body2}= create dictionary currentPage=0 itemsPerPage=50
...@@ -35,6 +36,6 @@ VALIDAR CATALOGOS ...@@ -35,6 +36,6 @@ VALIDAR CATALOGOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Catalogos PRIMARIA ${flag_reporte} ${reporte} ${valores_catalogos} validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Catalogos PRIMARIA ${flag_reporte} ${reporte} ${valores_catalogos} ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR CICLOS LIQUIDACION ...@@ -22,6 +22,7 @@ VALIDAR CICLOS LIQUIDACION
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=name=='${item}[1]*' &{body}= create dictionary filterExpression=name=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR CICLOS LIQUIDACION ...@@ -32,6 +33,6 @@ VALIDAR CICLOS LIQUIDACION
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Ciclos de Liquidacion PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Ciclos de Liquidacion PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR CLASES UBIGEO ...@@ -22,6 +22,7 @@ VALIDAR CLASES UBIGEO
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR CLASES UBIGEO ...@@ -32,6 +33,6 @@ VALIDAR CLASES UBIGEO
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Clase Ubigeo PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Clase Ubigeo PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR CONCEPTOS ...@@ -22,6 +22,7 @@ VALIDAR CONCEPTOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR CONCEPTOS ...@@ -32,6 +33,6 @@ VALIDAR CONCEPTOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Conceptos PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Conceptos PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR EQUIVALENCIAS ...@@ -22,6 +22,7 @@ VALIDAR EQUIVALENCIAS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR EQUIVALENCIAS ...@@ -32,6 +33,6 @@ VALIDAR EQUIVALENCIAS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Equivalencias PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Equivalencias PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR IMPUESTOS ...@@ -22,6 +22,7 @@ VALIDAR IMPUESTOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=code=='${item}[1]*' &{body}= create dictionary filterExpression=code=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR IMPUESTOS ...@@ -32,6 +33,6 @@ VALIDAR IMPUESTOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Impuestos PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Impuestos PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR INTERVALOS ...@@ -22,6 +22,7 @@ VALIDAR INTERVALOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -36,6 +37,6 @@ VALIDAR INTERVALOS ...@@ -36,6 +37,6 @@ VALIDAR INTERVALOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores_condiciones} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores_condiciones}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Intervalo PRIMARIA ${flag_reporte} ${reporte} ${valores_condiciones} validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Intervalo PRIMARIA ${flag_reporte} ${reporte} ${valores_condiciones} ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR MONEDAS ...@@ -22,6 +22,7 @@ VALIDAR MONEDAS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=code=='${item}[1]*' &{body}= create dictionary filterExpression=code=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR MONEDAS ...@@ -32,6 +33,6 @@ VALIDAR MONEDAS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Moneda PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Moneda PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR PARAMETROS DE NEGOCIO ...@@ -22,6 +22,7 @@ VALIDAR PARAMETROS DE NEGOCIO
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=key=='${item}[1]*' &{body}= create dictionary filterExpression=key=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR PARAMETROS DE NEGOCIO ...@@ -32,6 +33,6 @@ VALIDAR PARAMETROS DE NEGOCIO
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Parametros de Negocio PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Parametros de Negocio PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -6,10 +6,9 @@ Library SeleniumLibrary ...@@ -6,10 +6,9 @@ Library SeleniumLibrary
Resource ../../Funciones/FuncionesRobot/FuncionesAPI.robot Resource ../../Funciones/FuncionesRobot/FuncionesAPI.robot
Resource ../../Funciones/FuncionesRobot/FuncionesValidacion.robot Resource ../../Funciones/FuncionesRobot/FuncionesValidacion.robot
Resource ../../Funciones/FuncionesRobot/FuncionTOKEN.robot
Variables ../../Variables/variables.py Variables ../../Variables/variables.py
*** Variables ***
*** Keywords *** *** Keywords ***
VALIDAR PARAMETROS DE SISTEMA VALIDAR PARAMETROS DE SISTEMA
[Arguments] ${data_excel} ${flag_reporte} ${reporte} [Arguments] ${data_excel} ${flag_reporte} ${reporte}
...@@ -22,6 +21,8 @@ VALIDAR PARAMETROS DE SISTEMA ...@@ -22,6 +21,8 @@ VALIDAR PARAMETROS DE SISTEMA
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
# log to console ${TOKEN}
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -30,6 +31,6 @@ VALIDAR PARAMETROS DE SISTEMA ...@@ -30,6 +31,6 @@ VALIDAR PARAMETROS DE SISTEMA
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Parámetros de sistema PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Parámetros de sistema PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR TAREAS PROGRAMADAS ...@@ -22,6 +22,7 @@ VALIDAR TAREAS PROGRAMADAS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[1]*' &{body}= create dictionary filterExpression=description=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR TAREAS PROGRAMADAS ...@@ -32,6 +33,6 @@ VALIDAR TAREAS PROGRAMADAS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tareas Programadas PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tareas Programadas PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR TIPO DE CAMBIOS ...@@ -22,6 +22,7 @@ VALIDAR TIPO DE CAMBIOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body_moneda}= create dictionary filterExpression=name=='${item}[1]*' &{body_moneda}= create dictionary filterExpression=name=='${item}[1]*'
...@@ -38,6 +39,6 @@ VALIDAR TIPO DE CAMBIOS ...@@ -38,6 +39,6 @@ VALIDAR TIPO DE CAMBIOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tipo de Cambio PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tipo de Cambio PRIMARIA ${flag_reporte} ${reporte} - -
END END
\ No newline at end of file
...@@ -24,6 +24,7 @@ VALIDAR TIPOS CATALOGOS ...@@ -24,6 +24,7 @@ VALIDAR TIPOS CATALOGOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=id=='${item}[1]*' &{body}= create dictionary filterExpression=id=='${item}[1]*'
...@@ -34,6 +35,6 @@ VALIDAR TIPOS CATALOGOS ...@@ -34,6 +35,6 @@ VALIDAR TIPOS CATALOGOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tipos de catálogo PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tipos de catálogo PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR TIPOS DE AJUSTES ...@@ -22,6 +22,7 @@ VALIDAR TIPOS DE AJUSTES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR TIPOS DE AJUSTES ...@@ -32,6 +33,6 @@ VALIDAR TIPOS DE AJUSTES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tipos de Ajuste PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Tipos de Ajuste PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR UBIGEOS ...@@ -22,6 +22,7 @@ VALIDAR UBIGEOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR UBIGEOS ...@@ -32,6 +33,6 @@ VALIDAR UBIGEOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Ubigeo PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Ubigeo PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR VALORES POSIBLES ...@@ -22,6 +22,7 @@ VALIDAR VALORES POSIBLES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=concept=='${item}[1]*' &{body}= create dictionary filterExpression=concept=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR VALORES POSIBLES ...@@ -32,6 +33,6 @@ VALIDAR VALORES POSIBLES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Valores posibles PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Valores posibles PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR CONEXIONES ...@@ -22,6 +22,7 @@ VALIDAR CONEXIONES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[2]*' &{body}= create dictionary filterExpression=description=='${item}[2]*'
...@@ -32,6 +33,6 @@ VALIDAR CONEXIONES ...@@ -32,6 +33,6 @@ VALIDAR CONEXIONES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Conexiones PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Conexiones PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR CREDENCIALES ...@@ -22,6 +22,7 @@ VALIDAR CREDENCIALES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR CREDENCIALES ...@@ -32,6 +33,6 @@ VALIDAR CREDENCIALES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Credenciales PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Credenciales PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -24,6 +24,7 @@ VALIDAR INSUMOS ...@@ -24,6 +24,7 @@ VALIDAR INSUMOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[2]*' &{body}= create dictionary filterExpression=description=='${item}[2]*'
...@@ -34,6 +35,6 @@ VALIDAR INSUMOS ...@@ -34,6 +35,6 @@ VALIDAR INSUMOS
# log to console TERMINO DE CONSEGUIR LOS VALORES : ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES : ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Insumos PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Insumos PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR REPOSITORIOS ...@@ -22,6 +22,7 @@ VALIDAR REPOSITORIOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR REPOSITORIOS ...@@ -32,6 +33,6 @@ VALIDAR REPOSITORIOS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Repositorios PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Repositorios PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -24,6 +24,7 @@ VALIDAR ACUERDOS ...@@ -24,6 +24,7 @@ VALIDAR ACUERDOS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[1]*' &{body}= create dictionary filterExpression=description=='${item}[1]*'
...@@ -36,6 +37,6 @@ VALIDAR ACUERDOS ...@@ -36,6 +37,6 @@ VALIDAR ACUERDOS
${valores_plan}= Obtener data ${header} ${ID_plan} ${session} /service/config-service/commission-plan-version/version ${valores_plan}= Obtener data ${header} ${ID_plan} ${session} /service/config-service/commission-plan-version/version
# log to console TERMINO DE CONSEGUIR LOS VALORES DEL PLAN: ${valores_plan} # log to console TERMINO DE CONSEGUIR LOS VALORES DEL PLAN: ${valores_plan}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Acuerdos PRIMARIA ${flag_reporte} ${reporte} ${valores_plan} validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Acuerdos PRIMARIA ${flag_reporte} ${reporte} ${valores_plan} ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR AJUSTES ...@@ -22,6 +22,7 @@ VALIDAR AJUSTES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=period=='${item}[2]*' &{body}= create dictionary filterExpression=period=='${item}[2]*'
...@@ -32,6 +33,6 @@ VALIDAR AJUSTES ...@@ -32,6 +33,6 @@ VALIDAR AJUSTES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Ajustes PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Ajustes PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR ESTRUCTURAS ...@@ -22,6 +22,7 @@ VALIDAR ESTRUCTURAS
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[2]*' &{body}= create dictionary filterExpression=description=='${item}[2]*'
...@@ -32,6 +33,6 @@ VALIDAR ESTRUCTURAS ...@@ -32,6 +33,6 @@ VALIDAR ESTRUCTURAS
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Estructura de Comisión PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Estructura de Comisión PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR EXCEPCIONES ...@@ -22,6 +22,7 @@ VALIDAR EXCEPCIONES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR EXCEPCIONES ...@@ -32,6 +33,6 @@ VALIDAR EXCEPCIONES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Excepciones PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Excepciones PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR MATRICES ...@@ -22,6 +22,7 @@ VALIDAR MATRICES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[2]*' &{body}= create dictionary filterExpression=description=='${item}[2]*'
...@@ -32,6 +33,6 @@ VALIDAR MATRICES ...@@ -32,6 +33,6 @@ VALIDAR MATRICES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Matriz de puntos PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Matriz de puntos PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR PENALIDADES ...@@ -22,6 +22,7 @@ VALIDAR PENALIDADES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[1]*' &{body}= create dictionary filterExpression=description=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR PENALIDADES ...@@ -32,6 +33,6 @@ VALIDAR PENALIDADES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Penalidades PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Penalidades PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR PLANES ...@@ -22,6 +22,7 @@ VALIDAR PLANES
log to console ESTE ES EL ITEM ACTUAL: ${item}[1] log to console ESTE ES EL ITEM ACTUAL: ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[1]*' &{body}= create dictionary filterExpression=description=='${item}[1]*'
...@@ -32,6 +33,6 @@ VALIDAR PLANES ...@@ -32,6 +33,6 @@ VALIDAR PLANES
# log to console TERMINO DE CONSEGUIR LOS VALORES ${valores} # log to console TERMINO DE CONSEGUIR LOS VALORES ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Plan de comision PRIMARIA ${flag_reporte} ${reporte} validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Plan de comision PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR FILTROS ...@@ -22,6 +22,7 @@ VALIDAR FILTROS
# log to console ${item}[1] # log to console ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=identifier=='${item}[1]*' &{body}= create dictionary filterExpression=identifier=='${item}[1]*'
...@@ -30,6 +31,6 @@ VALIDAR FILTROS ...@@ -30,6 +31,6 @@ VALIDAR FILTROS
# log to console ${valores} # log to console ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Filtros PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Filtros PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -22,6 +22,7 @@ VALIDAR VISTAS ...@@ -22,6 +22,7 @@ VALIDAR VISTAS
# log to console ${item}[1] # log to console ${item}[1]
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN} &{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
&{body}= create dictionary filterExpression=description=='${item}[2]*' &{body}= create dictionary filterExpression=description=='${item}[2]*'
...@@ -30,6 +31,6 @@ VALIDAR VISTAS ...@@ -30,6 +31,6 @@ VALIDAR VISTAS
# log to console ${valores} # log to console ${valores}
validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Vistas PRIMARIA ${flag_reporte} ${reporte} - validar configuracion ${item} ${valores} ${campos} ${llave_campos} ${data_excel} Vistas PRIMARIA ${flag_reporte} ${reporte} - ${ID}
END END
\ No newline at end of file
...@@ -2,6 +2,86 @@ import json ...@@ -2,6 +2,86 @@ import json
import ast import ast
import datetime import datetime
def obtenerTamano(valor):
if(isinstance(valor,int)):
valor = str(valor)
tamano = len(valor)
return tamano
a=[]
print(str(obtenerTamano(a))+' ,, ' + str(obtenerTamano('afas')))
def crearCadenaApartirLista(list):
cadena = ''
for i in range(0, len(list)):
item = list[i]
if(isinstance(item,int)):
cadena = cadena + "[" + str(item) + "]."
else:
cadena = cadena + item
return cadena
print(crearCadenaApartirLista(['currentVersion.file',4,'fileStruct.fileMapping',1,'fileField.expression']))
def crearDiccionarioJSON(lista_key, lista_value):
diccionario = {
"id": 23,
"version": 0,
"concept": "prueba",
"description": "Prueba",
"possibleValueItemList": [
{
"id": 65,
"version": 0,
"identifier": "1",
"description": "1",
"value": "1",
"defaultValue": False
}
]
}
# diccionario = {}
# for i in range(0, len(lista_key)):
# key = lista_key[i]
# value = lista_value[i]
# if(value == '-'):
# value = ''
# diccionario[key] = value
return diccionario
def modificarDiccionario(diccionario, lista_key, lista_value):
for i in range(0, len(lista_key)):
key = lista_key[i]
value = lista_value[i]
if(value == '-'):
value = ''
if(('[' in key) or (']' in key)):
key = key.replace('[', '].').split('].')
cont = len(key)
for j in range(0,cont):
if(key[j].isnumeric()):
key[j] = int(key[j])
if(cont==2):
diccionario[key[0]][key[1]] = value
elif(cont==3):
diccionario[key[0]][key[1]][key[2]] = value
else:
diccionario[key] = value
return diccionario
list1 = ['a', 'b', 'c', 'd']
list2 = [1, 2, 3, '-']
dict = crearDiccionarioJSON(list1, list2)
print(dict)
print(modificarDiccionario(dict, ['description', 'concept','possibleValueItemList[0].description'],['Valor cambiado', 'nuevo concepto','2']))
def modificar_fecha_excepcion(fecha): def modificar_fecha_excepcion(fecha):
fechaN = fecha.split('T') fechaN = fecha.split('T')
fechaN = fechaN[0] fechaN = fechaN[0]
...@@ -233,16 +313,50 @@ print(separarRutaJSON('intervalConditionBeanList[${i}].intervalRangeBeanList[${i ...@@ -233,16 +313,50 @@ print(separarRutaJSON('intervalConditionBeanList[${i}].intervalRangeBeanList[${i
# #
# return pos # return pos
def modificarJSON_valueConComilla(cadena):
cadena = cadena.replace('("', '(')
cadena = cadena.replace('")', ')')
cadena = cadena.replace('""','"')
cadena = cadena.replace('\r',' ')
cadena = cadena.replace('\n', ' ')
cadena = cadena.replace('="', '=')
cadena = cadena.replace('= "','= ')
cadena = cadena.replace("\"')","')")
cadena = cadena.replace(':" ";',':* *;')
cadena = cadena.replace(':"";', ':**;')
cadena = cadena.replace('( "','( ')
cadena = cadena.replace('" )', ' )')
cadena = cadena.replace('\" ",','",')
cadena = cadena.replace('()?:";','()?:*;')
cadena = cadena.replace('==,"', '==,","')
return cadena
def remove_escape_sequences(string): def remove_escape_sequences(string):
cadena = string.encode('utf-8').decode('unicode_escape') cadena = string.encode('utf-8').decode('unicode_escape')
# cadena_json = json.loads(cadena, strict=False) # cadena_json = json.loads(cadena, strict=False)
cadena = cadena.replace('ó','o') cadena = cadena.replace('ó','o')
cadena = cadena.replace('á', 'a')
cadena = cadena.replace(\x81', 'A')
cadena = cadena.replace('é', 'e')
cadena = cadena.replace(\x89', 'E')
cadena = cadena.replace(\xad', 'i')
cadena = cadena.replace(\x8d', 'I')
cadena = cadena.replace(\x93', 'O')
cadena = cadena.replace('ú', 'u')
cadena = cadena.replace(\x9a', 'U')
cadena = cadena.replace('ñ', 'ni')
cadena = cadena.replace(\x91', 'NI')
# return cadena_json # return cadena_json
return cadena return cadena
def cambiarCaracterUTF8(cadena): def cambiarCaracterUTF8(cadena):
nueva_cadena = str(cadena)
nueva_cadena = remove_escape_sequences(cadena)
nueva_cadena = modificarJSON_valueConComilla(nueva_cadena)
nueva_cadena = nueva_cadena.replace('\?','/?')
# nueva_cadena = nueva_cadena.encode(encoding='UTF-8',errors="ignore") # nueva_cadena = nueva_cadena.encode(encoding='UTF-8',errors="ignore")
# nueva_cadena = "''" + str(cadena) + "''" # nueva_cadena = "''" + str(cadena) + "''"
...@@ -264,6 +378,11 @@ def cambiarCaracterUTF8(cadena): ...@@ -264,6 +378,11 @@ def cambiarCaracterUTF8(cadena):
return nueva_cadena return nueva_cadena
d = "{'a': 'aaaaa', 'b': 'bb\"bbb\"b','c':'c\"c\"c'}"
print(cambiarCaracterUTF8(d))
# print(cambiarCaracterUTF8("""{"id":81,"version":3,"type":"O","status":"A","creationDate":"2022-02-23T00:00:00-05:00","liquidation":"Y","email":"","phone":"","person":"","organizationBean":{"id":22,"version":1,"type":"O","name":"LIQ E5 Digital Inspire","identification":"901164937","channelType":"I","channelClass":"C","logo":"","organizationUnitType":"\u0000","organizationStructureBeanList":[{"id":220,"version":0,"from":"2022-02-23T00:00:00-05:00","party":78,"individual":55,"individualName":"LIQ E5 Manrique","role":23,"roleName":"Organizaci\xc3\xb3n Remoto - Agentes E-dealers"}],"responsible":55,"responsibleName":"LIQ E5 Manrique","representative":84,"representativeName":"LIQ LUIS ERNESTO MU\xc3\x91OZ BALLESTEROS / LIQ E1 WOM 13ENE","liquidationIndividual":false,"segmentationBeanList":[]},"partyBeanList":[]}""")) # print(cambiarCaracterUTF8("""{"id":81,"version":3,"type":"O","status":"A","creationDate":"2022-02-23T00:00:00-05:00","liquidation":"Y","email":"","phone":"","person":"","organizationBean":{"id":22,"version":1,"type":"O","name":"LIQ E5 Digital Inspire","identification":"901164937","channelType":"I","channelClass":"C","logo":"","organizationUnitType":"\u0000","organizationStructureBeanList":[{"id":220,"version":0,"from":"2022-02-23T00:00:00-05:00","party":78,"individual":55,"individualName":"LIQ E5 Manrique","role":23,"roleName":"Organizaci\xc3\xb3n Remoto - Agentes E-dealers"}],"responsible":55,"responsibleName":"LIQ E5 Manrique","representative":84,"representativeName":"LIQ LUIS ERNESTO MU\xc3\x91OZ BALLESTEROS / LIQ E1 WOM 13ENE","liquidationIndividual":false,"segmentationBeanList":[]},"partyBeanList":[]}"""))
# print(remove_escape_sequences("""{"id":81,"version":3,"type":"O","status":"A","creationDate":"2022-02-23T00:00:00-05:00","liquidation":"Y","email":"","phone":"","person":"","organizationBean":{"id":22,"version":1,"type":"O","name":"LIQ E5 Digital Inspire","identification":"901164937","channelType":"I","channelClass":"C","logo":"","organizationUnitType":"\u0000","organizationStructureBeanList":[{"id":220,"version":0,"from":"2022-02-23T00:00:00-05:00","party":78,"individual":55,"individualName":"LIQ E5 Manrique","role":23,"roleName":"Organizaci\xc3\xb3n Remoto - Agentes E-dealers"}],"responsible":55,"responsibleName":"LIQ E5 Manrique","representative":84,"representativeName":"LIQ LUIS ERNESTO MU\xc3\x91OZ BALLESTEROS / LIQ E1 WOM 13ENE","liquidationIndividual":false,"segmentationBeanList":[]},"partyBeanList":[]}""")) # print(remove_escape_sequences("""{"id":81,"version":3,"type":"O","status":"A","creationDate":"2022-02-23T00:00:00-05:00","liquidation":"Y","email":"","phone":"","person":"","organizationBean":{"id":22,"version":1,"type":"O","name":"LIQ E5 Digital Inspire","identification":"901164937","channelType":"I","channelClass":"C","logo":"","organizationUnitType":"\u0000","organizationStructureBeanList":[{"id":220,"version":0,"from":"2022-02-23T00:00:00-05:00","party":78,"individual":55,"individualName":"LIQ E5 Manrique","role":23,"roleName":"Organizaci\xc3\xb3n Remoto - Agentes E-dealers"}],"responsible":55,"responsibleName":"LIQ E5 Manrique","representative":84,"representativeName":"LIQ LUIS ERNESTO MU\xc3\x91OZ BALLESTEROS / LIQ E1 WOM 13ENE","liquidationIndividual":false,"segmentationBeanList":[]},"partyBeanList":[]}"""))
...@@ -324,7 +324,7 @@ def obtener_ubicacion_campos_subseccion(opcion, subsecciones, campos): ...@@ -324,7 +324,7 @@ def obtener_ubicacion_campos_subseccion(opcion, subsecciones, campos):
lista = [] lista = []
tam = len(subsecciones) tam = len(subsecciones)
for i in range(0, tam): for i in range(0, tam):
if (opcion == 'Catálogos'): if (opcion == 'Catalogos'):
ubicaciones = determinar_ubicacion_campos_catalog(opcion,subsecciones[i],campos[i]) ubicaciones = determinar_ubicacion_campos_catalog(opcion,subsecciones[i],campos[i])
lista.append(ubicaciones) lista.append(ubicaciones)
else: else:
...@@ -384,23 +384,23 @@ def llamar_datos_excel(opcion, ruta_excel,sheetname): ...@@ -384,23 +384,23 @@ def llamar_datos_excel(opcion, ruta_excel,sheetname):
return datos return datos
# datos = llamar_datos_excel('Catalogos', datos = llamar_datos_excel('Catalogos',
# "D:\\DATOS 14 10 22\\Escritorio\\Proyectos y Trabajos personales\\Empresa BYTE\\ficheros ROBOT\\Configuracion_API.xlsx", "D:\\DATOS 14 10 22\\Escritorio\\Proyectos y Trabajos personales\\Empresa BYTE\\ficheros ROBOT\\Configuracion_API_UATs.xlsx",
# 'Parametros') 'Parametros')
#
# print('Seccion: ' + str(datos[0]) + print('Seccion: ' + str(datos[0]) +
# '\nUbicacion en Excel: ' + str(datos[1]) + '\nUbicacion en Excel: ' + str(datos[1]) +
# '\nUbicacion en interfaz: ' + str(datos[2]) + '\nUbicacion en interfaz: ' + str(datos[2]) +
# '\nCampos: ' + str(datos[3]) + '\nCampos: ' + str(datos[3]) +
# '\nValores: ' + str(datos[4]) + '\nValores: ' + str(datos[4]) +
# '\nUbicacion de campos en interfaz: ' + str(datos[5]) + '\nUbicacion de campos en interfaz: ' + str(datos[5]) +
# '\nSubsecciones: ' + str(datos[6]) + '\nSubsecciones: ' + str(datos[6]) +
# '\nCampos de subsecciones: ' + str(datos[7]) + '\nCampos de subsecciones: ' + str(datos[7]) +
# '\nValores de subsecciones: ' + str(datos[8]) + '\nValores de subsecciones: ' + str(datos[8]) +
# '\nUbicacion de campos de subsecciones en interfaz: ' + str(datos[9])+ '\nUbicacion de campos de subsecciones en interfaz: ' + str(datos[9])+
# '\n') '\n')
# #
# a = buscar_tabla_Secundaria2('Catalogos','Catalogo de celulares','Parametros') a = buscar_tabla_Secundaria2('Catalogos','Tipo de catálogo básico','Parametros')
# print(a) print("Tabla: "+ str(a))
# b = obtener_valores_Sec_catalog(a,'Parametros') b = obtener_valores_Sec_catalog(a,'Parametros')
# print(b) print("valores: "+ str(b))
\ No newline at end of file \ No newline at end of file
*** Settings ***
Library RequestsLibrary
Library JSONLibrary
Library Collections
Library SeleniumLibrary
Library String
Library ../FuncionesPython/FuncionesVarias.py
Variables ../../Variables/variables.py
*** Keywords ***
OBTENER TOKEN
Delete All Sessions
Create Session ${session_token} ${URL_TOKEN}
&{header}= create dictionary Content-Type=application/x-www-form-urlencoded Cookie=KEYCLOAK_LOCALE=es
&{body}= create dictionary grant_type=password client_id=bcom-backend client_secret=${client_secret} username=${username} password=${password}
# log to console ${header}
# log to console ${body}
${resp}= Post Request ${session_token} /auth/realms/BCOM/protocol/openid-connect/token headers=${header} data=${body}
# log to console ${resp}
${access_token}= Collections.Get From Dictionary ${resp.json()} access_token
${NUEVO_TOKEN}= Catenate Bearer ${access_token}
# log to console ${NUEVO_TOKEN}
Delete All Sessions
Create Session ${session} ${URL_BASE}
[return] ${NUEVO_TOKEN}
\ No newline at end of file
...@@ -307,11 +307,11 @@ Obtener data ...@@ -307,11 +307,11 @@ Obtener data
ELSE ELSE
${valor}= get request ${session} ${API}/${ID} headers=${header} ${valor}= get request ${session} ${API}/${ID} headers=${header}
${valor_string}= convert to string ${valor.content} ${valor_string}= convert to string ${valor.content}
# log to console CONTENIDO DEL VALOR EN STRING: ${valor_string} log to console CONTENIDO DEL VALOR EN STRING: ${valor_string}
${valor_string2}= cambiarCaracterUTF8 ${valor_string} ${valor_string2}= cambiarCaracterUTF8 ${valor_string}
# log to console CONTENIDO DEL VALOR EN STRING DESPUES DE FUNCION: ${valor_string2} log to console CONTENIDO DEL VALOR EN STRING DESPUES DE FUNCION: ${valor_string2}
${valor_json}= convert string to json ${valor_string2} ${valor_json}= convert string to json ${valor_string2}
# log to console CONTENIDO DEL VALOR EN JSON: ${valor_json} log to console CONTENIDO DEL VALOR EN JSON: ${valor_json}
END END
[return] ${valor_json} [return] ${valor_json}
...@@ -402,9 +402,9 @@ Obtener data - catalogos ...@@ -402,9 +402,9 @@ Obtener data - catalogos
ELSE ELSE
${valor}= post request ${session} ${API}/${ID} headers=${header} data=${body} ${valor}= post request ${session} ${API}/${ID} headers=${header} data=${body}
${valor_string}= convert to string ${valor.content} ${valor_string}= convert to string ${valor.content}
# log to console CONTENIDO DEL VALOR EN STRING: ${valor_string} log to console CONTENIDO DEL VALOR EN STRING: ${valor_string}
${valor_string2}= cambiarCaracterUTF8 ${valor_string} ${valor_string2}= cambiarCaracterUTF8 ${valor_string}
# log to console CONTENIDO DEL VALOR EN STRING DESPUES DE FUNCION: ${valor_string2} log to console CONTENIDO DEL VALOR EN STRING DESPUES DE FUNCION: ${valor_string2}
# ${valor_string3}= convert to string ${valor_string2} # ${valor_string3}= convert to string ${valor_string2}
${valor_json}= convert string to json ${valor_string2} ${valor_json}= convert string to json ${valor_string2}
# log to console CONTENIDO DEL VALOR EN JSON: ${valor_json} # log to console CONTENIDO DEL VALOR EN JSON: ${valor_json}
......
*** Settings ***
Library RequestsLibrary
Library JSONLibrary
Library Collections
Library SeleniumLibrary
Library ../FuncionesPython/FuncionesVarias.py
Resource FuncionesVarias.robot
*** Keywords ***
ACTUALIZAR ENTIDAD
[Arguments] ${opcion} ${ID} ${lista_ubicacion_json} ${lista_nuevos_valores} ${JSON_ORIGINAL}
# CREACION DE HEADER PARA EL REQUEST
${TOKEN}= obtener token
&{header}= create dictionary Content-Type=application/json Authorization=${TOKEN}
# OBTENCION DE API
${API}= OBTENER API ${opcion} -
# log to console API: ${API}
# log to console ID: ${ID}
# CREACION DE BODY PARA EL REQUEST
# log to console LISTA KEY: ${lista_ubicacion_json}
# log to console LISTA VALUE: ${lista_nuevos_valores}
# &{JSON_ORIGINAL}= Obtener data ${header} ${ID} ${session} ${API}
&{body}= MODIFICARDICCIONARIO ${JSON_ORIGINAL} ${lista_ubicacion_json} ${lista_nuevos_valores}
# log to console Body: ${body}
# CREACION DE REQUEST
${put_request}= put request ${session} ${API}/${ID} data=${body} headers=${header}
log to console ${put_request.status_code}
log to console ${put_request.content}
\ No newline at end of file
...@@ -6,10 +6,11 @@ Library SeleniumLibrary ...@@ -6,10 +6,11 @@ Library SeleniumLibrary
Library ../FuncionesPython/FuncionesVarias.py Library ../FuncionesPython/FuncionesVarias.py
Resource FuncionesVarias.robot Resource FuncionesVarias.robot
Resource FuncionesActualizacion.robot
*** Keywords *** *** Keywords ***
Validar subentidad Validar subentidad
[Arguments] ${opcion} ${item} ${datos_API} ${data_excel} ${flag_reporte} ${reporte} ${valores_subentidades_API_externa} [Arguments] ${opcion} ${item} ${datos_API} ${data_excel} ${flag_reporte} ${reporte} ${valores_subentidades_API_externa} ${ID}
log to console || EMPEZANDO VALIDACION DE SUBENTIDADES || log to console || EMPEZANDO VALIDACION DE SUBENTIDADES ||
...@@ -61,10 +62,10 @@ Validar subentidad ...@@ -61,10 +62,10 @@ Validar subentidad
ELSE IF ("${subsecciones}[${i}]"=="Rangos") ELSE IF ("${subsecciones}[${i}]"=="Rangos")
Validar configuracion - estructura rangos ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subsecciones}[${i}] ${flag_reporte} ${reporte} Validar configuracion - estructura rangos ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subsecciones}[${i}] ${flag_reporte} ${reporte}
ELSE ELSE
Validar configuracion - subentidad ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subsecciones}[${i}] ${flag_reporte} ${reporte} Validar configuracion - subentidad ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subsecciones}[${i}] ${flag_reporte} ${reporte} ${ID}
END END
ELSE ELSE
Validar configuracion - subentidad ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subsecciones}[${i}] ${flag_reporte} ${reporte} Validar configuracion - subentidad ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subsecciones}[${i}] ${flag_reporte} ${reporte} ${ID}
END END
END END
ELSE ELSE
...@@ -213,7 +214,7 @@ Validar configuracion - estructura rangos ...@@ -213,7 +214,7 @@ Validar configuracion - estructura rangos
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -366,7 +367,7 @@ Validar configuracion - distribucion y com periodica ...@@ -366,7 +367,7 @@ Validar configuracion - distribucion y com periodica
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -519,7 +520,7 @@ Validar configuracion - estructura condiciones alteracion ...@@ -519,7 +520,7 @@ Validar configuracion - estructura condiciones alteracion
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -672,7 +673,7 @@ Validar configuracion - campos ficheros ...@@ -672,7 +673,7 @@ Validar configuracion - campos ficheros
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -836,7 +837,7 @@ Validar configuracion - asignacion acuerdo ...@@ -836,7 +837,7 @@ Validar configuracion - asignacion acuerdo
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -990,7 +991,7 @@ Validar configuracion - oferta y rol acuerdo ...@@ -990,7 +991,7 @@ Validar configuracion - oferta y rol acuerdo
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1142,7 +1143,7 @@ Validar configuracion - rango excepciones ...@@ -1142,7 +1143,7 @@ Validar configuracion - rango excepciones
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1215,7 +1216,7 @@ Validar configuracion - dist puntos ...@@ -1215,7 +1216,7 @@ Validar configuracion - dist puntos
${IDENTIFICADOR_JSON}= obtener identificador - matriz dist puntos ${valor1} ${valores_excel}[1] ${IDENTIFICADOR_JSON}= obtener identificador - matriz dist puntos ${valor1} ${valores_excel}[1]
# log to console IDENTIFICADOR: ${IDENTIFICADOR_JSON} # log to console IDENTIFICADOR: ${IDENTIFICADOR_JSON}
IF "${IDENTIFICADOR_JSON}" != "-" IF """${IDENTIFICADOR_JSON}""" != """-"""
${encontrado}= set variable Si ${encontrado}= set variable Si
IF "${campos_subseccion}[${j}]" == "Elementos" IF "${campos_subseccion}[${j}]" == "Elementos"
${valor}= get from list ${valores_excel} 1 ${valor}= get from list ${valores_excel} 1
...@@ -1250,7 +1251,7 @@ Validar configuracion - dist puntos ...@@ -1250,7 +1251,7 @@ Validar configuracion - dist puntos
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1310,7 +1311,7 @@ Validar configuracion - condicion intervalo ...@@ -1310,7 +1311,7 @@ Validar configuracion - condicion intervalo
# log to console ${json} # log to console ${json}
IF "${json}" != "-" IF """${json}""" != """-"""
${encontrado}= set variable Si ${encontrado}= set variable Si
FOR ${j} IN RANGE 0 ${N_CAMPOS} FOR ${j} IN RANGE 0 ${N_CAMPOS}
${n}= sumar ${j} 1 ${n}= sumar ${j} 1
...@@ -1338,7 +1339,7 @@ Validar configuracion - condicion intervalo ...@@ -1338,7 +1339,7 @@ Validar configuracion - condicion intervalo
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1399,7 +1400,7 @@ Validar configuracion - rango intervalo ...@@ -1399,7 +1400,7 @@ Validar configuracion - rango intervalo
# log to console ${json} # log to console ${json}
IF "${json}" != "-" IF """${json}""" != """-"""
${n_json}= get length ${json} ${n_json}= get length ${json}
${encontrado}= set variable No ${encontrado}= set variable No
...@@ -1438,7 +1439,7 @@ Validar configuracion - rango intervalo ...@@ -1438,7 +1439,7 @@ Validar configuracion - rango intervalo
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1557,7 +1558,7 @@ Validar configuracion - dia de semana ...@@ -1557,7 +1558,7 @@ Validar configuracion - dia de semana
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1607,7 +1608,7 @@ Validar configuracion - excepciones ...@@ -1607,7 +1608,7 @@ Validar configuracion - excepciones
# log to console JSON PARA ${valores_subseccion}[${i}][1]: ${JSON} # log to console JSON PARA ${valores_subseccion}[${i}][1]: ${JSON}
# log to console DATOS EXCEL PARA ${valores_subseccion}[${i}][1]: ${valores_subseccion}[${i}] # log to console DATOS EXCEL PARA ${valores_subseccion}[${i}][1]: ${valores_subseccion}[${i}]
IF "${JSON}" == "-" IF """${JSON}""" == """-"""
${encontrado}= set variable No ${encontrado}= set variable No
ELSE ELSE
${encontrado}= set variable Si ${encontrado}= set variable Si
...@@ -1648,7 +1649,7 @@ Validar configuracion - excepciones ...@@ -1648,7 +1649,7 @@ Validar configuracion - excepciones
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1686,20 +1687,21 @@ Validar configuracion - catalogos ...@@ -1686,20 +1687,21 @@ Validar configuracion - catalogos
${lista_id}= obtener id - campos catalogos ${datos_API} id ${lista_id}= obtener id - campos catalogos ${datos_API} id
${lista_campos}= obtener id - campos catalogos ${datos_API} tag ${lista_campos}= obtener id - campos catalogos ${datos_API} tag
${identificador}= obtener identificador - catalogos ${lista_campos} ${campos_subseccion} ${identificador}= obtener identificador - catalogos ${lista_campos} ${campos_subseccion}
log to console CAMPOS: ${campos_subseccion} # log to console CAMPOS: ${campos_subseccion}
FOR ${i} IN RANGE 0 ${n_valores} FOR ${i} IN RANGE 0 ${n_valores}
@{lista_campos_diferentes}= create list @{lista_campos_diferentes}= create list
@{lista_valores_excel}= create list @{lista_valores_excel}= create list
@{lista_valores_api}= create list @{lista_valores_api}= create list
@{lista_ubicaciones_json}= create list
log to console ITEM SUBENTIDAD A EVALUAR: ${valores_subseccion}[${i}] log to console ITEM SUBENTIDAD A EVALUAR: ${valores_subseccion}[${i}]
${valores_excel}= get from list ${valores_subseccion} ${i} ${valores_excel}= get from list ${valores_subseccion} ${i}
${n_campos}= get length ${campos_subseccion} ${n_campos}= get length ${campos_subseccion}
${json}= obtener json - campos catalogos ${valores_catalogos} ${lista_id} ${lista_campos} ${valores_subseccion}[${i}][1] ${identificador} ${json}= obtener json - campos catalogos ${valores_catalogos} ${lista_id} ${lista_campos} ${valores_subseccion}[${i}][1] ${identificador}
IF "${json}" != "-" IF """${json}""" != """-"""
FOR ${j} IN RANGE 0 ${n_campos} FOR ${j} IN RANGE 0 ${n_campos}
${n}= sumar 1 ${j} ${n}= sumar 1 ${j}
${valor_excel}= get from list ${valores_excel} ${n} ${valor_excel}= get from list ${valores_excel} ${n}
...@@ -1731,7 +1733,7 @@ Validar configuracion - catalogos ...@@ -1731,7 +1733,7 @@ Validar configuracion - catalogos
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
...@@ -1763,7 +1765,7 @@ Validar configuracion - catalogos ...@@ -1763,7 +1765,7 @@ Validar configuracion - catalogos
END END
Validar configuracion - subentidad Validar configuracion - subentidad
[Arguments] ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subseccion} ${flag_reporte} ${reporte} [Arguments] ${item} ${opcion} ${datos_API} ${campos_subseccion} ${valores_subseccion} ${ubicacion_campos_subseccion} ${tam_subseccion} ${tipo_identificador} ${subseccion} ${flag_reporte} ${reporte} ${ID}
${N_CAMPOS}= get length ${campos_subseccion} ${N_CAMPOS}= get length ${campos_subseccion}
...@@ -1782,6 +1784,7 @@ Validar configuracion - subentidad ...@@ -1782,6 +1784,7 @@ Validar configuracion - subentidad
@{lista_campos_diferentes}= create list @{lista_campos_diferentes}= create list
@{lista_valores_excel}= create list @{lista_valores_excel}= create list
@{lista_valores_api}= create list @{lista_valores_api}= create list
@{lista_ubicaciones_json}= create list
${encontrado}= set variable No ${encontrado}= set variable No
# log to console IDENTIFICADOR EXCEL: ${identificador} # log to console IDENTIFICADOR EXCEL: ${identificador}
...@@ -1791,10 +1794,13 @@ Validar configuracion - subentidad ...@@ -1791,10 +1794,13 @@ Validar configuracion - subentidad
${valor}= set variable - ${valor}= set variable -
@{Lista_ubicacion}= separarRutaJSON ${ubicacion_campos_subseccion}[${j}][0] @{Lista_ubicacion}= separarRutaJSON ${ubicacion_campos_subseccion}[${j}][0]
@{ubicacion_JSON}= create list
# log to console ${Lista_ubicacion} # log to console ${Lista_ubicacion}
${N_LISTA}= get length ${Lista_ubicacion} ${N_LISTA}= get length ${Lista_ubicacion}
@{Valores}= get value from json ${datos_API} ${Lista_ubicacion}[0] @{Valores}= get value from json ${datos_API} ${Lista_ubicacion}[0]
append to list ${ubicacion_JSON} ${Lista_ubicacion}[0]
${N_VALORES}= get length ${Valores} ${N_VALORES}= get length ${Valores}
# log to console ${N_VALORES} # log to console ${N_VALORES}
${encontrado}= set variable No ${encontrado}= set variable No
...@@ -1832,6 +1838,9 @@ Validar configuracion - subentidad ...@@ -1832,6 +1838,9 @@ Validar configuracion - subentidad
IF "${tam_ident}" != "0" IF "${tam_ident}" != "0"
IF "${identificador}" == "${IDENTIFICADOR_JSON}[0]" IF "${identificador}" == "${IDENTIFICADOR_JSON}[0]"
@{Valores2}= get value from json ${JSON_Valores2} ${Lista_ubicacion}[1] @{Valores2}= get value from json ${JSON_Valores2} ${Lista_ubicacion}[1]
append to list ${ubicacion_JSON} ${m}
append to list ${ubicacion_JSON} ${Lista_ubicacion}[1]
# log to console ${Valores2} # log to console ${Valores2}
${estado}= run keyword and return status get from list ${Valores2} 0 ${estado}= run keyword and return status get from list ${Valores2} 0
IF "${estado}"=="True" IF "${estado}"=="True"
...@@ -1847,6 +1856,8 @@ Validar configuracion - subentidad ...@@ -1847,6 +1856,8 @@ Validar configuracion - subentidad
END END
END END
END END
${ubicacion_JSON}= crearCadenaApartirLista ${ubicacion_JSON}
# ${test}= set variable - # ${test}= set variable -
# log to console VALOR DE SUBENTIDAD: ${valor} # log to console VALOR DE SUBENTIDAD: ${valor}
...@@ -1855,61 +1866,88 @@ Validar configuracion - subentidad ...@@ -1855,61 +1866,88 @@ Validar configuracion - subentidad
${valor_excel}= get from list ${lista_valor_excel} ${n} ${valor_excel}= get from list ${lista_valor_excel} ${n}
${valor_excel}= modificar si es fecha ${valor_excel} ${valor_excel}= modificar si es fecha ${valor_excel}
# log to console VALOR EXCEL: ${valor_excel} # log to console VALOR EXCEL: ${valor_excel}
${esta_vacio}= Run Keyword And Return Status Esta vacio ${valor} ${valores_subseccion}[${i}][${n}] ${esta_vacio}= Run Keyword And Return Status Esta vacio ${valor} ${valor_excel}
${valor_vacio}= obtenerTamano ${valor}
# log to console ${esta_vacio} # log to console ${esta_vacio}
IF "${esta_vacio}" != "False" IF ("${esta_vacio}" != "False") and ("${valor_vacio}" != "0")
IF """${valor}""" != """${valor_excel}""" IF """${valor}""" != """${valor_excel}"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} ${valor} append to list ${lista_valores_api} ${valor}
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
append to list ${lista_ubicaciones_json} ${ubicacion_JSON}
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF "${flag_tipo_ejecucion}" == "VALIDACION"
IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}] append to list ${lista_campos_diferentes} ${campos_subseccion}[${j}]
append to list ${lista_ubicaciones_json} ${ubicacion_JSON}
END
END END
END END
END END
END END
${N_LISTA}= get length ${lista_campos_diferentes} ${N_LISTA}= get length ${lista_campos_diferentes}
IF "${flag_tipo_ejecucion}" == "VALIDACION"
IF "${N_LISTA}" != "0" IF "${N_LISTA}" != "0"
${resultado}= set variable Existe subentidad con identificador ${valores_subseccion}[${i}][1] , pero no esta correctamente configurado en los campos: ${lista_campos_diferentes} ${resultado}= set variable Existe subentidad con identificador ${valores_subseccion}[${i}][1] , pero no esta correctamente configurado en los campos: ${lista_campos_diferentes}
realizar reporte ${resultado} ${lista_valores_excel} ${lista_valores_api} ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion} realizar reporte ${resultado} ${lista_valores_excel} ${lista_valores_api} ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion}
# log to console Campos distintos: ${lista_campos_diferentes} # log to console Campos distintos: ${lista_campos_diferentes}
# log to console Valores segun API: ${lista_valores_api} # log to console Valores segun API: ${lista_valores_api}
# log to console Valores segun excel: ${lista_valores_excel} # log to console Valores segun excel: ${lista_valores_excel}
ELSE ELSE
IF "${encontrado}" == "Si" IF "${encontrado}" == "Si"
${resultado}= set variable Existe subentidad con identificador ${valores_subseccion}[${i}][1] y esta correctamente configurado ${resultado}= set variable Existe subentidad con identificador ${valores_subseccion}[${i}][1] y esta correctamente configurado
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion} realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion}
# log to console No hay campos distintos # log to console No hay campos distintos
ELSE ELSE
${resultado}= set variable No se encontro subentidad con identificador ${valores_subseccion}[${i}][1] ${resultado}= set variable No se encontro subentidad con identificador ${valores_subseccion}[${i}][1]
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion} realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion}
# log to console No se encontro subentidad ${valores_subseccion}[${i}][1] # log to console No se encontro subentidad ${valores_subseccion}[${i}][1]
END END
END END
ELSE IF "${flag_tipo_ejecucion}" == "ACTUALIZACION"
IF "${N_LISTA}" != "0"
log to console ACTUALIZANDO ...
log to console UBICACIONES A ACTUALIZAR: ${lista_ubicaciones_json}
# log to console Valores segun API: ${lista_valores_api}
# log to console Valores segun excel: ${lista_valores_excel}
actualizar entidad ${opcion} ${ID} ${lista_ubicaciones_json} ${lista_valores_excel}
${resultado}= set variable Existe subentidad con identificador ${valores_subseccion}[${i}][1] , pero no esta correctamente configurado en los campos: ${lista_campos_diferentes} , por lo que se actualizaron sus datos
realizar reporte ${resultado} ${lista_valores_excel} ${lista_valores_api} ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion}
ELSE
IF "${encontrado}" == "Si"
${resultado}= set variable Existe subentidad con identificador ${valores_subseccion}[${i}][1] y esta correctamente configurado
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion}
ELSE
${resultado}= set variable No se encontro subentidad con identificador ${valores_subseccion}[${i}][1]
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${valores_subseccion}[${i}] SECUNDARIA ${opcion} ${subseccion}
END
END
END
END END
Validar configuracion Validar configuracion
[Arguments] ${datos_excel} ${datos_API} ${campos} ${ubicacion_campos} ${data_excel} ${opcion} ${TIPO_TABLA} ${flag_reporte} ${reporte} ${valores_catalogos} [Arguments] ${datos_excel} ${datos_API} ${campos} ${ubicacion_campos} ${data_excel} ${opcion} ${TIPO_TABLA} ${flag_reporte} ${reporte} ${valores_catalogos} ${ID}
${N_CAMPOS}= get length ${campos} ${N_CAMPOS}= get length ${campos}
@{lista_campos_diferentes}= create list @{lista_campos_diferentes}= create list
@{lista_valores_excel}= create list @{lista_valores_excel}= create list
@{lista_valores_api}= create list @{lista_valores_api}= create list
@{lista_ubicaciones_json}= create list
${tam_datos_API}= get length ${datos_API} ${tam_datos_API}= get length ${datos_API}
...@@ -1945,36 +1983,57 @@ Validar configuracion ...@@ -1945,36 +1983,57 @@ Validar configuracion
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} ${valor} append to list ${lista_valores_api} ${valor}
append to list ${lista_campos_diferentes} ${campos}[${i}] append to list ${lista_campos_diferentes} ${campos}[${i}]
append to list ${lista_ubicaciones_json} ${ubicacion_campos}[${i}][0]
END END
ELSE ELSE
IF """${valor_excel}""" != "-" IF """${valor_excel}""" != """-"""
append to list ${lista_valores_excel} ${valor_excel} append to list ${lista_valores_excel} ${valor_excel}
append to list ${lista_valores_api} - append to list ${lista_valores_api} -
append to list ${lista_campos_diferentes} ${campos}[${i}] append to list ${lista_campos_diferentes} ${campos}[${i}]
append to list ${lista_ubicaciones_json} ${ubicacion_campos}[${i}][0]
END END
END END
END END
${N_LISTA}= get length ${lista_campos_diferentes} ${N_LISTA}= get length ${lista_campos_diferentes}
IF "${flag_tipo_ejecucion}" == "VALIDACION"
IF "${N_LISTA}" != "0" IF "${N_LISTA}" != "0"
${resultado}= set variable Existe entidad con identificador ${datos_excel}[1] , pero no esta correctamente configurado en los campos: ${lista_campos_diferentes} ${resultado}= set variable Existe entidad con identificador ${datos_excel}[1] , pero no esta correctamente configurado en los campos: ${lista_campos_diferentes}
realizar reporte ${resultado} ${lista_valores_excel} ${lista_valores_api} ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} - realizar reporte ${resultado} ${lista_valores_excel} ${lista_valores_api} ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} -
# log to console Campos distintos: ${lista_campos_diferentes} # log to console Campos distintos: ${lista_campos_diferentes}
# log to console Valores segun API: ${lista_valores_api} # log to console Valores segun API: ${lista_valores_api}
# log to console Valores segun excel: ${lista_valores_excel} # log to console Valores segun excel: ${lista_valores_excel}
ELSE ELSE
${resultado}= set variable Existe entidad con identificador ${datos_excel}[1] y esta correctamente configurado ${resultado}= set variable Existe entidad con identificador ${datos_excel}[1] y esta correctamente configurado
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} - realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} -
# log to console No hay campos distintos # log to console No hay campos distintos
END
ELSE IF "${flag_tipo_ejecucion}" == "ACTUALIZACION"
IF "${N_LISTA}" != "0"
log to console ACTUALIZANDO ...
log to console UBICACIONES A ACTUALIZAR: ${lista_ubicaciones_json}
actualizar entidad ${opcion} ${ID} ${lista_ubicaciones_json} ${lista_valores_excel} ${datos_API}
${resultado}= set variable Existe entidad con identificador ${datos_excel}[1] , pero no esta correctamente configurado en los campos: ${lista_campos_diferentes}, por lo que se actualizaron sus datos
realizar reporte ${resultado} ${lista_valores_excel} ${lista_valores_api} ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} -
ELSE
${resultado}= set variable Existe entidad con identificador ${datos_excel}[1] y esta correctamente configurado
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} -
END
END END
ELSE ELSE
IF "${flag_tipo_ejecucion}" == "VALIDACION"
${resultado}= set variable No se encontro entidad con identificador ${datos_excel}[1] ${resultado}= set variable No se encontro entidad con identificador ${datos_excel}[1]
realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} - realizar reporte ${resultado} - - ${flag_reporte} ${reporte} ${datos_excel} ${TIPO_TABLA} ${opcion} -
ELSE IF "${flag_tipo_ejecucion}" == "ACTUALIZACION"
log to console ACTUALIZANDO ...
log to console AQUI IRA MODULO DE CREAR
END
END END
${NUM_SUBSECCIONES}= GET LENGTH ${data_excel}[6] ${NUM_SUBSECCIONES}= GET LENGTH ${data_excel}[6]
IF (${NUM_SUBSECCIONES} != 0) and ("${TIPO_TABLA}" == "PRIMARIA") and (("${tam_datos_API}" != "1") and ("${tam_datos_API}" != "0")) IF (${NUM_SUBSECCIONES} != 0) and ("${TIPO_TABLA}" == "PRIMARIA") and (("${tam_datos_API}" != "1") and ("${tam_datos_API}" != "0"))
Validar subentidad ${opcion} ${datos_excel} ${datos_API} ${data_excel} ${flag_reporte} ${reporte} ${valores_catalogos} Validar subentidad ${opcion} ${datos_excel} ${datos_API} ${data_excel} ${flag_reporte} ${reporte} ${valores_catalogos} ${ID}
END END
...@@ -41,6 +41,8 @@ Esta vacio ...@@ -41,6 +41,8 @@ Esta vacio
${resultado}= set variable - ${resultado}= set variable -
IF """${cadena1}""" != """${cadena2}""" IF """${cadena1}""" != """${cadena2}"""
${resultado}= set variable SI ${resultado}= set variable SI
ELSE ELSE
...@@ -480,7 +482,7 @@ Obtener ID - CAMPOS CATALOGOS ...@@ -480,7 +482,7 @@ Obtener ID - CAMPOS CATALOGOS
[Arguments] ${datos_API} ${nombre_campo_json} [Arguments] ${datos_API} ${nombre_campo_json}
${lista_id}= get value from json ${datos_API} catalogType.characteristicSpecificationBeanList[*].${nombre_campo_json} ${lista_id}= get value from json ${datos_API} catalogType.characteristicSpecificationBeanList[*].${nombre_campo_json}
log to console ${lista_id} # log to console ${lista_id}
[return] ${lista_id} [return] ${lista_id}
...@@ -736,3 +738,32 @@ Modificar identificador - tipo de criterio ...@@ -736,3 +738,32 @@ Modificar identificador - tipo de criterio
# log to console TIPO DE ESTRUCTURA: ${id} # log to console TIPO DE ESTRUCTURA: ${id}
[return] ${tipo} [return] ${tipo}
OBTENER API
[Arguments] ${opcion} ${seccion}
${API}= set variable -
IF "${opcion}" == "Valores posibles"
${API}= set variable /service/config-service/possible-value
ELSE IF "${opcion}" == "Ciclos de Liquidacion"
${API}= set variable /service/config-service/billing-cycle
ELSE IF "${opcion}" == "Clase Ubigeo"
${API}= set variable /service/config-service/class-ubigeo
ELSE IF "${opcion}" == "Impuestos"
${API}= set variable /service/config-service/tax
ELSE IF "${opcion}" == "Tipos de catálogo"
${API}= set variable /service/config-service/catalog-type
ELSE IF "${opcion}" == "Catalogos"
IF "${seccion}" == "Encabezado"
${API}= set variable /service/config-service/catalog
ELSE
${API}= set variable /service/config-service/characteristic-value/list-value-group-pagination
END
ELSE IF "${opcion}" == "Gestor Agentes - Individuos"
${API}= set variable /service/config-service/party
END
[return] ${API}
\ No newline at end of file
...@@ -23,13 +23,14 @@ TC VALIDACION DEL MENU DE CONFIGURACION ...@@ -23,13 +23,14 @@ TC VALIDACION DEL MENU DE CONFIGURACION
Create Session ${session} ${URL_BASE} Create Session ${session} ${URL_BASE}
${reporte}= crear reporte ${ruta_reporte} ${reporte}= crear reporte ${ruta_reporte}
# ${data_excel}= llamar datos excel Roles ${ruta_excel} Agentes # ${data_excel}= llamar datos excel Roles ${ruta_excel} Agentes
# VALIDAR ROLES ${data_excel} ${flag_reporte} ${reporte} # VALIDAR ROLES ${data_excel} ${flag_reporte} ${reporte}
# #
# ${data_excel}= llamar datos excel Gestor Agentes - Individuos ${ruta_excel} Agentes ${data_excel}= llamar datos excel Gestor Agentes - Individuos ${ruta_excel} Agentes
# VALIDAR INDIVIDUOS ${data_excel} ${flag_reporte} ${reporte} VALIDAR INDIVIDUOS ${data_excel} ${flag_reporte} ${reporte}
${data_excel}= llamar datos excel Gestor Agentes - Organización ${ruta_excel} Agentes # ${data_excel}= llamar datos excel Gestor Agentes - Organización ${ruta_excel} Agentes
VALIDAR ORGANIZACIONES ${data_excel} ${flag_reporte} ${reporte} # VALIDAR ORGANIZACIONES ${data_excel} ${flag_reporte} ${reporte}
llenarreporte ${reporte} - - - - - Terminado llenarreporte ${reporte} - - - - - Terminado
...@@ -43,16 +43,16 @@ TC VALIDACION DEL MENU DE CONFIGURACION ...@@ -43,16 +43,16 @@ TC VALIDACION DEL MENU DE CONFIGURACION
# #
# ${data_excel}= llamar datos excel Parametros de Negocio ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Parametros de Negocio ${ruta_excel} Parametros
# VALIDAR PARAMETROS DE NEGOCIO ${data_excel} ${flag_reporte} ${reporte} # VALIDAR PARAMETROS DE NEGOCIO ${data_excel} ${flag_reporte} ${reporte}
#
# ${data_excel}= llamar datos excel Tareas Programadas ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Tareas Programadas ${ruta_excel} Parametros
# VALIDAR TAREAS PROGRAMADAS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR TAREAS PROGRAMADAS ${data_excel} ${flag_reporte} ${reporte}
#
# ${data_excel}= llamar datos excel Moneda ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Moneda ${ruta_excel} Parametros
# VALIDAR MONEDAS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR MONEDAS ${data_excel} ${flag_reporte} ${reporte}
#
# ${data_excel}= llamar datos excel Ubigeo ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Ubigeo ${ruta_excel} Parametros
# VALIDAR UBIGEOS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR UBIGEOS ${data_excel} ${flag_reporte} ${reporte}
#
# ${data_excel}= llamar datos excel Tipos de Ajuste ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Tipos de Ajuste ${ruta_excel} Parametros
# VALIDAR TIPOS DE AJUSTES ${data_excel} ${flag_reporte} ${reporte} # VALIDAR TIPOS DE AJUSTES ${data_excel} ${flag_reporte} ${reporte}
...@@ -63,29 +63,27 @@ TC VALIDACION DEL MENU DE CONFIGURACION ...@@ -63,29 +63,27 @@ TC VALIDACION DEL MENU DE CONFIGURACION
# ${data_excel}= llamar datos excel Tipos de catálogo ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Tipos de catálogo ${ruta_excel} Parametros
# VALIDAR TIPOS CATALOGOS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR TIPOS CATALOGOS ${data_excel} ${flag_reporte} ${reporte}
# NECESITA LA FUNCION ENCODE
# ${data_excel}= llamar datos excel Catalogos ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Catalogos ${ruta_excel} Parametros
# VALIDAR CATALOGOS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR CATALOGOS ${data_excel} ${flag_reporte} ${reporte}
## #
# ${data_excel}= llamar datos excel Valores posibles ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Valores posibles ${ruta_excel} Parametros
# VALIDAR VALORES POSIBLES ${data_excel} ${flag_reporte} ${reporte} # VALIDAR VALORES POSIBLES ${data_excel} ${flag_reporte} ${reporte}
# NECESITA FUNCION BUSQUEDA
# ${datos}= llamar datos excel Tipo de Cambio ${ruta_excel} Parametros # ${datos}= llamar datos excel Tipo de Cambio ${ruta_excel} Parametros
# validar tipo de cambios ${datos} ${flag_reporte} ${reporte} # validar tipo de cambios ${datos} ${flag_reporte} ${reporte}
# ${data_excel}= llamar datos excel Ciclos de Liquidacion ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Ciclos de Liquidacion ${ruta_excel} Parametros
# VALIDAR CICLOS LIQUIDACION ${data_excel} ${flag_reporte} ${reporte} # VALIDAR CICLOS LIQUIDACION ${data_excel} ${flag_reporte} ${reporte}
## #
# ${data_excel}= llamar datos excel Conceptos ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Conceptos ${ruta_excel} Parametros
# VALIDAR CONCEPTOS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR CONCEPTOS ${data_excel} ${flag_reporte} ${reporte}
# #
# ${data_excel}= llamar datos excel Equivalencias ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Equivalencias ${ruta_excel} Parametros
# VALIDAR EQUIVALENCIAS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR EQUIVALENCIAS ${data_excel} ${flag_reporte} ${reporte}
#
# ${data_excel}= llamar datos excel Impuestos ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Impuestos ${ruta_excel} Parametros
# VALIDAR IMPUESTOS ${data_excel} ${flag_reporte} ${reporte} # VALIDAR IMPUESTOS ${data_excel} ${flag_reporte} ${reporte}
#
# ${data_excel}= llamar datos excel Clase Ubigeo ${ruta_excel} Parametros # ${data_excel}= llamar datos excel Clase Ubigeo ${ruta_excel} Parametros
# VALIDAR CLASES UBIGEO ${data_excel} ${flag_reporte} ${reporte} # VALIDAR CLASES UBIGEO ${data_excel} ${flag_reporte} ${reporte}
# #
......
*** Settings ***
Library RequestsLibrary
Library JSONLibrary
Library Collections
Library SeleniumLibrary
Resource ../Funciones/FuncionesRobot/FuncionesAPI.robot
Resource ../Componentes/MenuAgentes/Roles.robot
Resource ../Componentes/MenuAgentes/Individuos.robot
Resource ../Componentes/MenuAgentes/Organizaciones.robot
Library ../Funciones/FuncionesPython/LecturaExcel.py
Library ../Funciones/FuncionesPython/FuncionesReporte.py
Variables ../Variables/variables.py
*** Variables ***
*** Test Cases ***
TC VALIDACION DEL MENU DE CONFIGURACION
Create Session ${session} ${URL_TOKEN}
&{header}= create dictionary Content-Type=application/x-www-form-urlencoded Cookie=KEYCLOAK_LOCALE=es
&{body}= create dictionary grant_type=password client_id=bcom-backend client_secret=${client_secret} username=${username} password=${password}
log to console ${header}
log to console ${body}
${resp}= Post Request ${session} /auth/realms/BCOM/protocol/openid-connect/token headers=${header} data=${body}
log to console ${resp}
${token1}= Collections.Get From Dictionary ${resp.json()} access_token
${token2}= Collections.Get From Dictionary ${resp.json()} refresh_token
log to console ${token1}
log to console ${token2}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1629,22 +1629,22 @@ storage = function () { ...@@ -1629,22 +1629,22 @@ storage = function () {
window.output = {}; window.output = {};
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,75106],[],[[4,0,0,[],[1,4015,71088],[]]],[],[1,1,0,0]]; window.output["suite"] = [1,2,3,0,[],[1,0,33622],[],[[4,0,0,[],[1,26218,7404],[]]],[],[1,1,0,0]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["strings"] = []; window.output["strings"] = [];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*TC MenuExtraccion","*C:\\Users\\Daniel\\PycharmProjects\\RobotAutomatizacionServicios\\TestCases\\TC_MenuExtraccion.robot","*TC_MenuExtraccion.robot","*TC VALIDACION DEL MENU DE EXTRACCION"]); window.output["strings"] = window.output["strings"].concat(["*","*TC MenuConfiguracion","*C:\\Users\\Daniel\\PycharmProjects\\RobotAutomatizacionServicios\\TestCases\\TC_MenuConfiguracion.robot","*TC_MenuConfiguracion.robot","*TC VALIDACION DEL MENU DE CONFIGURACION"]);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:01:11","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:01:15","fail":0,"id":"s1","label":"TC MenuExtraccion","name":"TC MenuExtraccion","pass":1,"skip":0}]]; window.output["stats"] = [[{"elapsed":"00:00:07","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:34","fail":0,"id":"s1","label":"TC MenuConfiguracion","name":"TC MenuConfiguracion","pass":1,"skip":0}]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["baseMillis"] = 1687881062776; window.output["baseMillis"] = 1693956601021;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["generated"] = 78289; window.output["generated"] = 33745;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["expand_keywords"] = null; window.output["expand_keywords"] = null;
......
URL_BASE = 'http://int.bcom.tbs.com:980' # VARIABLES NECESARIAS PARA CONEXION API
# URL_BASE = 'http://192.168.27.29:38080'
TOKEN = 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJZMXdqNFd4NlUwaDVkTW1aY3U0Z0praURaUFM5UnVCeURHQmpubDZPY2ZZIn0.eyJleHAiOjE2ODc4ODEyNzUsImlhdCI6MTY4Nzg4MDk3NSwiYXV0aF90aW1lIjoxNjg3ODgwOTY3LCJqdGkiOiI2NWZmNWYzNC1lYzlkLTQzODctYjEyZS02MzE3ZGQyYmUwNTkiLCJpc3MiOiJodHRwOi8vdGVzdC5iY29tLnRicy5jb206NDgwOTUvYXV0aC9yZWFsbXMvQkNPTSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJlZmE0MzVjNC1kNmFiLTRkNzAtYWVmMC00NjBmNjMxMWEzNzEiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJiY29tLWZyb250ZW5kIiwibm9uY2UiOiI5YzNjYzJjNy1lOWFlLTQ1MDItYjljOS0wMGZiY2IyMmMxZmMiLCJzZXNzaW9uX3N0YXRlIjoiNmZkN2QwMzYtZGVmOC00MWFkLWEzNzgtYTJiZDhlMjI3MjRlIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwOi8vZGV2LmtleWNsb2FrLmJjb20udGJzLmNvbTo4MDgwIiwiaHR0cHM6Ly9kZXYuYmNvbS50YnMuY29tOjg0NDMiLCJodHRwOi8vZGV2LmJjb20udGJzLmNvbTo4MDgwIiwiaHR0cDovLzE5Mi4xNjguMjcuMTMyOjMxMDI3IiwiaHR0cDovL2xvY2FsaG9zdDo0MjAwIiwiaHR0cDovL2ludC5iY29tLnRicy5jb206OTgwIiwiaHR0cDovL2Rldi5saXF1aWRhdGlvbi5iY29tLnRicy5jb206ODA4MCIsImh0dHA6Ly9xYS5iY29tLnRicy5jb206ODA4MCIsImh0dHA6Ly90ZXN0LmJjb20udGJzLmNvbTo1ODA4MCIsImh0dHA6Ly8xOTIuMTY4LjI3LjEzMzozMTAyNyIsImh0dHBzOi8vZGV2LmxpcXVpZGF0aW9uLmJjb20udGJzLmNvbTo4NDQzIiwiaHR0cDovL2ludC5iY29tLnRicy5jb206MzgwODAiLCJodHRwOi8vaW50LmJjb20udGJzLmNvbTo4MDgwIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJiYXRjaC1leGVjdXRpb24iLCJhZ2VudGUiLCJxdWVyeV9zZXJ2aWNlX3JvbGUiLCJhdXRoX3Jlc291cmNlX3JvbGUiLCJlamVjdXRpdm8iLCJhZG1pbiIsImFnZW50ZS1jb21lcmNpYWwtZXh0ZXJubyIsImd1ZXNzIiwib2ZmbGluZV9hY2Nlc3MiLCJhZ2VudGUtY29tZXJjaWFsIiwidW1hX2F1dGhvcml6YXRpb24iLCJjb25maWciLCJ1c2VyIiwic3VwZXJ2aXNvciJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwibmFtZSI6Ikx1aXMgVmFzcXVleiIsInByZWZlcnJlZF91c2VybmFtZSI6Imx2YXNxdWV6IiwiZ2l2ZW5fbmFtZSI6Ikx1aXMiLCJsb2NhbGUiOiJlcyIsImZhbWlseV9uYW1lIjoiVmFzcXVleiIsInRlbmFudCI6InRlbmFudDEiLCJlbWFpbCI6Imx2YXNxdWV6QGJ5dGVzdy5jb20ifQ.QQrg67ZtU7vaxK8HwbGLWN7nn3rE0mlymb6EdysARbHK2fZT2bo9bXU1PnfYAEC7oMzvKr8wj-xympiJRbr8_vsVyuGv5Pab4eb_nd3muwA9ZBd2BE2LjeF_GWnXYRt3mTMm8E8ZWrs1SFT2cIK-4MRVJtwhA886tEas8dqnIqoFad3wl8uIIVx85MMllEYCYybvUME-U1esPeT9opg6c241Lal-eWVuFM1tuZeWUW9IcvFa3v6f4haGSBboWrbp_f1NRTSrPHUQthBu3QB_yXuvVXfpZoo0p53jl66Q2N4qqTFwNa8r4v3mwerldSLC0rIiFhWD8nLBhD_TiP9dNQ' # URL_BASE = 'http://int.bcom.tbs.com:980'
URL_BASE = 'http://192.168.27.29:38080'
TOKEN_1 = 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJySHI0bUpDMlVRbmZ5RlhmZEFNSHpjb2d2T2JXSWVxazVsV0xBdlI3VFhVIn0.eyJleHAiOjE2OTI4MjM3MTMsImlhdCI6MTY5MjgyMzQxMywiYXV0aF90aW1lIjoxNjkyODIzNDA3LCJqdGkiOiIwYjBlMTE2Mi1jNmE3LTQxNjYtOGZjMS05NWRhN2IzNzBmODIiLCJpc3MiOiJodHRwOi8vMTkyLjE2OC4yNy44OjI4MDgwL2F1dGgvcmVhbG1zL0JDT00iLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiYTc0ODZmMDQtMTIyNS00YzI2LWIxNmMtY2NjOTVjNTM3MDJhIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiYmNvbS1mcm9udGVuZCIsIm5vbmNlIjoiZWE1ZjMxMjctMzc1Yi00OWE4LTgxYWQtYmYzZDNkZDFkN2UwIiwic2Vzc2lvbl9zdGF0ZSI6ImFkZjEzNjYyLWY5NWEtNDlkZC05OWM5LWVlYzU1OTkzMjhiOCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2Rldi5rZXljbG9hay5iY29tLnRicy5jb206ODA4MCIsImh0dHA6Ly9sb2NhbGhvc3Q6NDIwMSIsImh0dHA6Ly8xOTIuMTY4LjI3LjIyOTozODA4MCIsImh0dHA6Ly8xOTIuMTY4LjI3LjIyOTozOTA5MCIsImh0dHA6Ly8xOTIuMTY4LjI3LjEzMjozMTAyNyIsImh0dHA6Ly9sb2NhbGhvc3Q6NDIwMCIsImh0dHA6Ly8xOTIuMTY4LjI3Ljg6NTgwODAiLCJodHRwOi8vMTkyLjE2OC4yNy44OjU5MDkwIiwiaHR0cDovL2ludC5iY29tLnRicy5jb206OTgwIiwiaHR0cDovL3FhLmJjb20udGJzLmNvbTo4MDgwIiwiaHR0cDovLzE5Mi4xNjguMjcuMTMzOjMxMDI3IiwiaHR0cDovL2ludC5iY29tLnRicy5jb206MzgwODAiLCJodHRwOi8vMTkyLjE2OC4yNy44OjM4MDgwIiwiaHR0cDovLzE5Mi4xNjguMjcuMjk6MzkwOTAiLCJodHRwOi8vMTkyLjE2OC4yNy4zOTozODA4MCIsImh0dHBzOi8vZGV2LmJjb20udGJzLmNvbTo4NDQzIiwiaHR0cDovL2Rldi5iY29tLnRicy5jb206ODA4MCIsImh0dHA6Ly9kZXYuYmNvbS50cC50YnMuY29tOjM5MDkwIiwiaHR0cDovL2Rldi5iY29tLnRwLnRicy5jb206MzgwODAiLCJodHRwOi8vMTkyLjE2OC4yNy4yOTozODA4MCIsImh0dHA6Ly8xOTIuMTY4LjI3Ljg6MzkwOTAiLCJodHRwOi8vZGV2LmxpcXVpZGF0aW9uLmJjb20udGJzLmNvbTo4MDgwIiwiaHR0cDovL3Rlc3QuYmNvbS50YnMuY29tOjU4MDgwIiwiaHR0cHM6Ly9kZXYubGlxdWlkYXRpb24uYmNvbS50YnMuY29tOjg0NDMiLCJodHRwOi8vaW50LmJjb20udGJzLmNvbTo4MDgwIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJxdWVyeV9zZXJ2aWNlX3JvbGUiLCJvZmZsaW5lX2FjY2VzcyIsInVtYV9hdXRob3JpemF0aW9uIiwiY29uZmlnIiwidXNlciJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsIm5hbWUiOiJSb2JlcnRvIExvYXl6YSIsInByZWZlcnJlZF91c2VybmFtZSI6InJsb2F5emEiLCJnaXZlbl9uYW1lIjoiUm9iZXJ0byIsImxvY2FsZSI6ImVzIiwiZmFtaWx5X25hbWUiOiJMb2F5emEiLCJlbWFpbCI6ImVhYmFyY2FAYnl0ZXN3LmNvbS5wZSJ9.Zt23b-BLV8zuUNsNggiyZVxzkBz6xMcO4RELO-hxwPfzcMV_KIxlZi4oGuAQcUz-jPaLdCzB7otdHy6NMNI0dghbUPwE_t4bQlBnkD1zRc2f86Y-mHc5xxY4H3t7n4ilqzH_ZFDC6SApsA1VjvTIv7jV_6jc1BYTQ-D5udQjrVEoSaocqtsqcbFx4oHsPra13PWjaSljlRSwNNVt1fv3EuP7h5wGQtCkRReGbLjghtkw1x3PbW-RmXGzdqin3EKih88cnhxlYXpOJ3iqA5ck1BGUrPipvwGwms29pn5i-z9ftvzGeINkW0BEU2BAEWOXl7YkJpHRBPi_AGoAB6L5lQ'
session = 'BCOM' session = 'BCOM'
# VARIABLES NECESARIAS PARA RENOVACION DE TOKEN
session_token = 'TOKEN'
URL_TOKEN = 'http://192.168.27.8:28080'
client_secret = '09301f99-f50e-4d18-a391-213bcd029608'
username = 'rloayza'
password = 'rloayza99'
# VARIABLES NECECESARIAS PARA EXTRACCIÓN DE DATOS # VARIABLES NECECESARIAS PARA EXTRACCIÓN DE DATOS
ruta_excel = "D:\\DATOS 14 10 22\\Escritorio\\Proyectos y Trabajos personales\\Empresa BYTE\\ficheros ROBOT\\Configuracion_API.xlsx" ruta_excel = "D:\\DATOS 14 10 22\\Escritorio\\Proyectos y Trabajos personales\\Empresa BYTE\\ficheros ROBOT\\Configuracion_API.xlsx"
# ruta_excel = "D:\\DATOS 14 10 22\\Escritorio\\Proyectos y Trabajos personales\\Empresa BYTE\\ficheros ROBOT\\Configuracion_API_UATs.xlsx"
# VARIABLES NECESARIAS PARA LA CREACION Y MANEJO DEL REPORTE (RUTA DEL REPORTE Y FLAG DE REPORTE) # VARIABLES NECESARIAS PARA LA CREACION Y MANEJO DEL REPORTE (RUTA DEL REPORTE Y FLAG DE REPORTE)
...@@ -27,3 +36,7 @@ ruta_reporte = 'C:\\Users\\Daniel\\Desktop\\REPORTE' ...@@ -27,3 +36,7 @@ ruta_reporte = 'C:\\Users\\Daniel\\Desktop\\REPORTE'
# REPORTE --> IMPRIMIR UN REPORTE EN UN ARCHIVO JSON # REPORTE --> IMPRIMIR UN REPORTE EN UN ARCHIVO JSON
# AMBOS --> IMPRIME EN CONSOLA Y EN REPORTE # AMBOS --> IMPRIME EN CONSOLA Y EN REPORTE
flag_reporte = 'AMBOS' flag_reporte = 'AMBOS'
# ACTUALIZACION || VALIDACION
# flag_tipo_ejecucion = 'ACTUALIZACION'
flag_tipo_ejecucion = 'VALIDACION'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment