Ask a Question

Cannot edit the groovy script after executing a test case?

Raju
New Contributor

Cannot edit the groovy script after executing a test case?

Hi All,

 

I have test case as follows

1. Data Sink

1. Post a request

2. Groovy script -- to get the response variable 

3. Data loop

 

After running the test case, I cannot edit the groovy script?

 

Can you share some light on this issue.  

 

Many Thanks

 

 

7 REPLIES 7
TanyaYatskovska
Community Manager

Re: Cannot edit the groovy script after executing a test case?

Hi Raju,

 

Could you please clarify what you mean by "I cannot edit the groovy script"?

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Raju
New Contributor

Re: Cannot edit the groovy script after executing a test case?

After running the test case, when I try to make changes to the groovy script, I cannot type or make changes. 

 

 

nmrao
Community Hero

Re: Cannot edit the groovy script after executing a test case?

May be you want to provide more info such as:
1. how frequent the issue is reproducible
2. any of your colleague computers if applicable
3. environment details
4. ready api version
5. is it only in the specific project or applicable for any project?


Regards,
Rao.
Raju
New Contributor

Re: Cannot edit the groovy script after executing a test case?

Ready API version  : 1.5.0

This happens every time the test case is run.

I have to close the tool and re-open to edit the groovy script.

I am the only one using the tool at the moment

I am posting the request against an internal URI with 2 parameters.

On receving the response from the API

Then next step is - The groovy script extracts the header and response values and transfers them to the test suite level properites

The next step uses these properties to post another request

After the test case is run.

When trying to edit the groovy script, cannot make changes to the script unless the tool is closed and re-opened again.

 

Thanks

Raju

 

Raju
New Contributor

Re: Cannot edit the groovy script after executing a test case?

Any solution this issue ... every time after running the test case, to make changes to the groovy script, I need to close the application and re-start..

 

Cheers,

Raju 

TanyaYatskovska
Community Manager

Re: Cannot edit the groovy script after executing a test case?

Hi Raju,

 

The behavior you describe is strange. Could you please report it to Ready! API Support Team ( http://support.smartbear.com/product-list/ )? To help our Team better understand what is happening on your computer, please record a video demonstrating the issue. To record a video, you can use Jing - a free screen capture tool ( http://www.jingproject.com ).

Thanks in advance.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
JKambli
Staff

Re: Cannot edit the groovy script after executing a test case?

What are the contents of your script since if the loop goes in infinite loop then Ready API will hang or memory issues that could be the reason, did you add memory settings?
Download nightly build 64 bit and add these settings,

https://support.smartbear.com/downloads/readyapi/nightly-builds/

In your Ready API installation folder, in the Contents directory, please find the vmoptions file and open it in a text editor.
Add these lines to the file:
Edit the vmoptions file in Ready API Pro installation folder\bin folder for windows and for Mac Applications/Ready-API-Home.app/Contents/ to accommodate following changes,
Set Xms128m and -Xmx to 4000 if your ram is 4GB or 8000 if its 8GB
-XX:MaxPermSize=128m
-XX:MinHeapFreeRatio=40
-XX:MaxHeapFreeRatio=70
-Dsoapui.jxbrowser.disable=true
-Dtest.history.disabled=true

 

 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: