Hi @avrkumar27
for what it's worth, I created a Git repo that includes a generic JSON-based testing approach with Microsoft Playwright.
https://github.com/bjoernkoth/generic-plawright-website-testing
You should not need a single line of code for this. A sample Edge Network request can look like this.
Basically, you can copy+pase the payload data from the network request's "payload" tab if it is a POST request.
For GET requests, you will need to transform the expected payload into a JSON object.

{
"url": "/ee",
"payload": {
"events": [
{
"xdm": {
"web": {
"webPageDetails": {
"name": "my page name",
"pageViews": {
"value": 1
}
}
},
"eventType": "web.webpagedetails.pageViews"
}
}
]
}
}
Obviously, you can extend the "xdm" with whatever payload you wish to check, and depending on the schema you have set up in the datastream e.g., you may have _experience.analytics.customDimensions.eVars.eVar99 if you are using the "Adobe Analytics ExperienceEvent Template" field group.
Just a super early version. Would be great to get some feedback on this.
It can be run locally or if you have a github license, also triggered through github actions.