Hello,
I try to save in session some id from a http response and it seems that only the last one is currently saved (richtexti18nUuid in the exemple)
Here my code :
.exec(http(“publish2”)
.post("/gwt/contentManager.gwt?lang=${LANG}&site=${siteUuid}&workspace=default")
.headers(headers_gwt)
.fileBody(“getPublicationInfo”, map)
.check(regex("""(^//OK)"""))
.check(regex("""“uuid”,"([0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+)",“title”,""").saveAs(“uuid”))
.check(regex("""“i18nUuid”,"([0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+)",""").saveAs(“i18nUuid”))
.check(regex(""""([0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+)",“maincontent”,""").saveAs(“mainContentUuid”))
.check(regex(""""([0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+)",“rich-text”,""").saveAs(“richtextUuid”))
.check(regex("""“Rich text”,"([0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+-[0-9 a-z]+)""").saveAs(“richtexti18nUuid”))
)
.exec((session: Session) => {
println("richtexti18nUuid : " + session.getAttribute(“richtexti18nUuid”))
println("richtextUuid : " + session.getAttribute(“richtextUuid”))
println("uuid : " + session.getAttribute(“uuid”))
println("i18nUuid : " + session.getAttribute(“i18nUuid”))
println("mainContentUuid : " + session.getAttribute(“mainContentUuid”))
session
}
)
Is it possible to have more than one saveAs ? and if yes how to achieve this ?