# \#scripting

**URL:** https://community.smartbear.com/tag/scripting/36.md

[Latest](https://community.smartbear.com/latest.md) · [Categories](https://community.smartbear.com/categories.md) · [Tags](https://community.smartbear.com/tags.md)

---

## [Cannot start MockService through Groovy Script](https://community.smartbear.com/t/cannot-start-mockservice-through-groovy-script/630)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 1\
**Last updated:** [September 20, 2026, 1:43pm UTC](https://community.smartbear.com/t/cannot-start-mockservice-through-groovy-script/630 "2026-09-20T13:43:27Z")

</div>

Originally posted by dekiBRT on January 22, 2025 Hello everyone, I have a problem with really simple task. I want to automatize the start-up of MockService using Groovy Script so that when I execute TestCase, Mock se…

---

## [major automation bug](https://community.smartbear.com/t/major-automation-bug/634)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 1\
**Last updated:** [September 20, 2026, 1:35pm UTC](https://community.smartbear.com/t/major-automation-bug/634 "2026-09-20T13:35:59Z")

</div>

Originally posted by vigy on June 24, 2025 For the past two months I have been dealing with a weird bug in SoapUI. Just thinking about making a post on this forum gives me headache. TLDR; Sometimes when testcase has…

---

## [String.replaceAll not working in Groovy script](https://community.smartbear.com/t/string-replaceall-not-working-in-groovy-script/71)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 16\
**Last updated:** [February 11, 2024, 3:08pm UTC](https://community.smartbear.com/t/string-replaceall-not-working-in-groovy-script/71 "2024-02-11T15:08:33Z")

</div>

Originally posted by Alejandro59 on February 03, 2024 I am using a file as a template in order to create new files. The template file contains “placeholders” in the form of \[plc\]placeholderName\[plc\]. I want to replace…

---

## [How to check for the existence of a value in Groovy script](https://community.smartbear.com/t/how-to-check-for-the-existence-of-a-value-in-groovy-script/70)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 5\
**Last updated:** [December 19, 2023, 1:24pm UTC](https://community.smartbear.com/t/how-to-check-for-the-existence-of-a-value-in-groovy-script/70 "2023-12-19T13:24:25Z")

</div>

Originally posted by jfesri on December 11, 2023 I have an existing Groovy script (for an assertion) that I need to change to check whether a variable exists, but not caring about the actual value. The script is using…

---

## [ERROR: groovy.lang.MissingPropertyException: No such property: soapui for class: Script1](https://community.smartbear.com/t/error-groovy-lang-missingpropertyexception-no-such-property-soapui-for-class-script1/142)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 2\
**Last updated:** [July 29, 2022, 9:21am UTC](https://community.smartbear.com/t/error-groovy-lang-missingpropertyexception-no-such-property-soapui-for-class-script1/142 "2022-07-29T09:21:19Z")

</div>

Originally posted by gpascual on July 26, 2022 Hi All, My project recently migrated from SOAP UI Pro to Ready API. We executed a Groovy script that work in SOAP UI Pro but not in ReadyAPI. Need advice on how to upda…

---

## [Upload File to AWS S3 Bucket Error due to AWS Signature Problem](https://community.smartbear.com/t/upload-file-to-aws-s3-bucket-error-due-to-aws-signature-problem/141)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 7:49am UTC](https://community.smartbear.com/t/upload-file-to-aws-s3-bucket-error-due-to-aws-signature-problem/141 "2022-07-11T07:49:37Z")

</div>

Originally posted by gmanolache19 on June 30, 2022 Currently I’m trying to upload a file to an AWS S3 Bucket but I didn’t manage to get it done. Firstly I tried using the REST Request step, in which after I set the cr…

---

## [How to encode a PDF file to base64 in groovy?](https://community.smartbear.com/t/how-to-encode-a-pdf-file-to-base64-in-groovy/250)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 5:30pm UTC](https://community.smartbear.com/t/how-to-encode-a-pdf-file-to-base64-in-groovy/250 "2022-02-14T17:30:11Z")

</div>

Originally posted by New2API on February 08, 2022 Hi, I am using below script to encode a PDF file. However, file gets corrupted when decoding or an API uploads it to a specific location. Can you please point out if …

---

## [Automate the Download of PDF files from Chrome](https://community.smartbear.com/t/automate-the-download-of-pdf-files-from-chrome/137)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 4\
**Last updated:** [September 7, 2021, 1:23pm UTC](https://community.smartbear.com/t/automate-the-download-of-pdf-files-from-chrome/137 "2021-09-07T13:23:37Z")

</div>

Originally posted by cauline on September 03, 2021 Does anyone know of a reliable way to interact with Adobe Reader embedded within Chrome to download PDF files? It appears to be using a ‘Flex’ control to download. …

---

## [Can I put multiple project in one Git repository?](https://community.smartbear.com/t/can-i-put-multiple-project-in-one-git-repository/136)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 7\
**Last updated:** [July 15, 2021, 7:36am UTC](https://community.smartbear.com/t/can-i-put-multiple-project-in-one-git-repository/136 "2021-07-15T07:36:06Z")

</div>

Originally posted by bastien on July 08, 2021 Dear Community, I’m setting up Gitlab repository to allow multiple tester to work together on scripts for the different modules we develop. I initially thought to create…

---

## [Variable declaration in a javascript class](https://community.smartbear.com/t/variable-declaration-in-a-javascript-class/313)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 11:45am UTC](https://community.smartbear.com/t/variable-declaration-in-a-javascript-class/313 "2019-07-19T11:45:54Z")

</div>

Originally posted by nish\_b on July 18, 2019 Hi, Can we declare global variables within a javascipt class, outside a function? When I try to declare a variable, it gives error: Syntax Error: Unexpected identifier Sa…

---

## [How to import a javascript class and extend it in another script unit](https://community.smartbear.com/t/how-to-import-a-javascript-class-and-extend-it-in-another-script-unit/312)

<div class="topic-metadata">

**Author:** [@system](https://community.smartbear.com/u/system)\
**Replies:** 6\
**Last updated:** [April 15, 2019, 1:53pm UTC](https://community.smartbear.com/t/how-to-import-a-javascript-class-and-extend-it-in-another-script-unit/312 "2019-04-15T13:53:49Z")

</div>

Originally posted by charleshb on April 08, 2019 Hi I am trying to use two Javascript projects - and export a class defined in one to be extended (inherited) in another. The example here how to import a javascript cl…
