-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
75 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ Category: Testing | |
|
||
**Disclaimer:** this is a translation of [the article](https://quality-lab.ru/blog/soap-api-testing/) written 2 years ago for a corporate blog. I didn't do a word-for-word translation because the original article went through an editor, whose style was not that close to mine. Too watered down and "official." Also, some examples don't make sense in English. Still, I didn't update it too radically. Bear in mind, at the moment of the writing I was testing SOAP services and Excel-based import/export at big government project, so most of the examples relate to that experience. | ||
|
||
{{< note >}} | ||
{{< callout >}} | ||
Sometimes you'll see a block like that. It will contain my current thoughts on the subject or comments. | ||
{{< /note >}} | ||
{{< /callout >}} | ||
|
||
--- | ||
|
||
|
@@ -186,9 +186,9 @@ SoapUI can generate mock objects based on WSDL. It's a crude service simulation | |
|
||
You recognize differences between free and pro versions of SoapUI. You use SoapUI as a library from code. You use plugins and run test cases via CLI and/or CI. Your tests cases are elegant and easy to support. You know all the angles! I envy you. | ||
|
||
{{< note >}} | ||
{{< callout >}} | ||
Or not. Presently I don't use any GUI tools for API testing except for exploratory sessions. | ||
{{< /note >}} | ||
{{< /callout >}} | ||
|
||
### Testing with code | ||
|
||
|
@@ -215,11 +215,11 @@ assert '1' == [email protected]() | |
|
||
As far as I know there are no high-level test frameworks for SOAP (similar to Rest-assured), but there is an interesting framework called [karate](https://github.com/intuit/karate) where you can describe test cases for SOAP and REST in Cucumber / Gherkin style. | ||
|
||
{{< note >}} | ||
{{< callout >}} | ||
I don't do any Groovy programming anymore, so no idea how groovy-wslite fares. In fact, I don't do SOAP testing now, so my knowledge about libraries can be outdated. | ||
|
||
Plus, I avoid anything cucumber-ish =) | ||
{{< /note >}} | ||
{{< /callout >}} | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{/* Available callout types: note, warning, cta */}} | ||
{{- $calloutType := .Get "type" | default "note" -}} | ||
{{- $color := "indigo" -}} | ||
{{- if eq $calloutType "note" }} | ||
{{- $color = "indigo" -}} | ||
{{- else if eq $calloutType "warning" }} | ||
{{- $color = "rose" -}} | ||
{{- else if eq $calloutType "cta" -}} | ||
{{- $color = "yellow" -}} | ||
{{- else -}} | ||
{{ errorf "Unknown callout type." }} | ||
{{- end -}} | ||
{{/* Check for single vs multiple paragraphs */}} | ||
{{- $raw := .Inner | $.Page.RenderString | chomp -}} | ||
{{- $isBlock := findRE "<[h|p][^>]*>" $raw -}} | ||
<div class="text-[1.7rem] w-full relative p-bleed mx-0 my-10 rounded-l-[0.3rem] rounded-r-[0.6rem] border-l-[0.3rem] border-solid border-{{- $color -}}-500 bg-{{- $color -}}-100 [&>p]:mb-[1.6rem] last:[&>*]:!mb-0 normal:w-[80.5rem] normal:my-10 normal:mx-bleed-negative"> | ||
<div class="absolute top-0 left-0 -translate-x-1/2 -translate-y-1/2 p-[0.6rem] bg-white rounded-[50%] text-{{- $color -}}-500"> | ||
{{- if eq $calloutType "warning" }} | ||
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg> | ||
{{- else if eq $calloutType "cta" -}} | ||
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg> | ||
{{- else -}} | ||
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg> | ||
{{- end -}} | ||
</div> | ||
{{- if $isBlock }}{{ $raw }}{{ else }}<p>{{ $raw }}</p>{{ end -}} | ||
</div> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.