Skip to content

Add (default) configuration for inlining the request contents into the result Scala script #9

@johannest

Description

@johannest

So instead of separate request files, inline the content like shown below:

	var rpcPrefix = """{"csrfToken":"${seckey}","rpc":["""
	var rpcSuffix = """],"syncId":${syncId},"clientId":${clientId}}"""

	def createRpc(s: String): String = {
		rpcPrefix + s + rpcSuffix
	}
...
.exec(http("update selected tab")
	.post(uidlUrl)
	.headers(headers_4)
	.body(StringBody(createRpc(""""type":"publishedEventHandler","node":${tabsId},"templateEventMethodName":"updateSelectedTab","templateEventMethodArgs":[true]}"""))).asJSON
	.check(syncIdExtract).check(clientIdExtract))
.pause(200 milliseconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions