Hi
i have in app.js
async ON_REQUEST() {
this.$session.$data.sapEvent = await HttpService.get(url);
},
on test script
conversation = testSuite.conversation({
runtime: "app"
});
const launchRequest = await
testSuite.requestBuilder.launch();
const response = await conversation.send(launchRequest);
console.log(conversation.$session)
why console.log return undefined ?
console.log of conversation return
Conversation {
sessionData: {
sapEvent: {
status: 200,
statusText: 'OK',
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
}
},
how to retrieve session attribute in unit test ?