val sentHeaders = Map(
"Content-Type" -> "application/x-www-form-urlencoded",
"User-Agent" -> "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0",
"Accept" -> "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language" -> "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3",
"Connection" -> "keep-alive")
val rechercheAvanceeScn = scenario("RechercheAvanceeAgent").during(TestsPerfConfiguration.dureeTest, "RechercheAvanceeAgentDuration", true) {
// Phase1: Authentification
exec(
http("Authentification")
.get("/authlogin?sid=1&app=999&code_teleservice=DELTA-T"))
// Phase 2: Form Recherche avancée
.exec(
http("RechercheAvanceeForm")
.get("/recherche/avancee/form")
.check(status.is(200))
)
// Phase 3: Recherche Avancée par type de declaration et type de garantie
.exec(
http("RechercheAvanceeAgentPost")
.post("/recherche/avancee/result")
.headers(sentHeaders)
.formParam("mrn.comparateur", "EGAL")
.formParam("mrn.value", "")
.formParam("typeDeclaration.value", "")
.formParam("dateDebut.comparateur", "EGAL")
.formParam("dateDebut.value", "")
.formParam("dateDebut.valueMax", "")
.formParam("dateLimitePresentationMarchandises.comparateur", "EGAL")
.formParam("dateLimitePresentationMarchandises.value", "")
.formParam("dateLimitePresentationMarchandises.valueMax", "")
.formParam("modeTransmission.value", "TOUS")
.formParam("typeProcedureDepart.value", "")
.formParam("typeProcedureDestination.value", "")
.formParam("dateFin.comparateur", "EGAL")
.formParam("dateFin.value", "")
.formParam("dateFin.valueMax", "")
.formParam("dateDepotDeclaration.comparateur", "EGAL_HEURE_MINUTES")
.formParam("dateDepotDeclaration.value", "")
.formParam("heureDepotDeclaration.value", "00:00")
.formParam("dateDepotDeclaration.valueMax", "")
.formParam("heureDepotDeclaration.valueMax", "00:00")
.formParam("donneesSureteSecurite.value", "")
.formParam("paysExpedition.value", "")
.formParam("nomenclatureMarchandises.comparateur", "EGAL")
.formParam("nomenclatureMarchandises.value", "")
.formParam("paysDestination.value", "")
.formParam("valeurFactureTotale.comparateur", "EGAL")
.formParam("valeurFactureTotale.value", "")
.formParam("valeurFactureTotale.valueMax", "")
.formParam("bureauDepart.value", "")
.formParam("bureauDestination.value", "")
.formParam("bureauPassage.value", "")
.formParam("circuitBureauDepart.value", "")
.formParam("resultatControlesDepart.value", "")
.formParam("circuitBureauPassage.value", "")
.formParam("resultatControlesPassage.value", "")
.formParam("circuitBureauDestination.value", "")
.formParam("resultatControlesDestination.value", "")
.formParam("typeGarantie.value", "TYPE_1")
.formParam("dateDebutGarantie.comparateur", "EGAL")
.formParam("dateDebutGarantie.value", "")
.formParam("dateDebutGarantie.valueMax", "")
.formParam("montantDetteSusceptibleNaitre.comparateur", "EGAL")
.formParam("montantDetteSusceptibleNaitre.value", "")
.formParam("montantDetteSusceptibleNaitre.valueMax", "")
.formParam("grn.comparateur", "EGAL")
.formParam("grn.value", "")
.formParam("dateFinGarantie.comparateur", "EGAL")
.formParam("dateFinGarantie.value", "")
.formParam("dateFinGarantie.valueMax", "")
.formParam("_suiteNonLiberationService.booleanValue", "on")
.formParam("_suiteControleGarantie.booleanValue", "on")
.formParam("etatDeclaration.value", "VALIDEE_MRN")
.formParam("result", "")
.check(status.is(200))
)
}