Teams Messages from Katalon with more Data

Hi all…

i’m trying to get better Messages from Katalon into Teams. Thne data from the plugin is not setisfying for me. I like to integrate Testnames and Date Time tohether with logos into the Teams messages.
I found Microsoft Adaptive Cards, which are working good from clean Selenium, but i got errors in Katalon. Anybody tried this, and/or can give some examples.

BR

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

Kindly add more details ( like code, logs, screenshot )on the Teams Integration

1 Like

Hi,

i try to send a adaptive Card via post request to Teams. I have a static http body, whichis received by Teams. Thats the working part. I like to include variables in the cards, to infor about f.e. testname, timestamp or test result. here is the http body code:

String bodyContent = """
	
	{
		"type": "message",
		"attachments": [
		  {
			"contentType": "application/vnd.microsoft.card.adaptive",
			"content": {
			  **"$schema":** "http://adaptivecards.io/schemas/adaptive-card.json",
			  "type": "AdaptiveCard",
			  "version": "1.0",
			  "body": [
				{
				  "type": "ColumnSet",
				  "columns": [
					{
					  "type": "Column",
					  "width": "auto",
					  "items": [
						{
						  "type": "Image",
						  "url": "https://blueseason.de/skon.png",
						  "size": "medium"
						}
					  ]
					},
					{
					  "type": "Column",
					  "width": "stretch",
					  "items": [
						{
						  "type": "TextBlock",
						  "text": "Katalon Suite Done",
						  "weight": "bolder",
						  "size": "large"
						},
						{
						  "type": "TextBlock",
						  "text": ${orderNumber},
						  "wrap": true
							 
						}
					  ]
					}
				  ]
				}
			  ]
			}
		  }
		]
	  }
	"""

The ine “$schema”: “http://adaptivecards.io/schemas/adaptive-card.json”,

is showing the error:

Reason:
groovy.lang.MissingPropertyException: No such property: schema for class: Script1724330535729
	at orderInternetO2Cable250Fb6660.run(orderInternetO2Cable250Fb6660:213)
	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
	at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:137)
	at TempTestCase1724335197763.run(TempTestCase1724335197763.groovy:25)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

any ideas ?

Hi @Frank.Jurczyk,

It is great to hear from you after a while. Thank you for sharing your concern.

At this moment, Katalon has not yet provided much support for Teams integration. Therefore, your customized code will cause the error. But we also have the plan to improve Teams integration in v10.1.0, Dec 2024 this year tentatively. Hope this can be clear. Thank you!

1 Like

thanks for the answer. I found a workaround.
I’m not using the code the Test, i forma a post request
with an adaptive card http body, passing some
variables from the test.

This solved my problem.

Looking forward what Katalon offer …

BR

2 Likes