Quantcast
Channel: New board topics in SmartBear Community
Viewing all 21160 articles
Browse latest View live

Groovy Dynamic XML files Combine/Append Based on a Node.

$
0
0

Hi All,

 

I am trying Combine/Append Large Set of Dynamic XML Files based in One Single Node (ReportID) in Boomi . It will very helpful if anyone helps with this. I added the Input files and Expected results. 

 

Thanks in Advance.

 

Thanks. 


CSharp Swagger solution generation needs updating

$
0
0

The VisualStudio.SLN generated for a swagger json file needs updating. Below the package list that should be used -- some updates may still be required.

 

<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="JsonSubTypes" version="1.2.0" targetFramework="net45" developmentDependency="true" />
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net45" developmentDependency="true" />
<package id="NUnit" version="3.11.0" targetFramework="net45" />
<package id="NUnit3TestAdapter" version="3.13.0" targetFramework="net45" />
<package id="RestSharp" version="105.1.0" targetFramework="net45" developmentDependency="true" />
</packages>

TestSuite: Setup Script: How to get current environment selected?

$
0
0

TestSuite: Setup Script: How to get current environment selected using the groovy script?

SOAP UI 5.0.0 : Move test cases within different suites in Bulk

$
0
0

Hi

 

I want to move test cases from one suite to another suite in Bulk (around130 TC's) . Is there any way for this bulk movement ?

Earlier I was using ReadyAPI licensed version and there was way for bulk movement. 

But in SOAP UI 5.5.0, when I select more than one TC, and right click, there is no option for clone. 

 

Regards

Vishal

 

SOAP UI 5.0.0 : Move test cases within different suites in Bulk

What are the magic tables available in SQL Server 2000?

$
0
0

What are the magic tables available in SQL Server 2000?

Does Swagger2 support spring webflux ?

$
0
0

Unable to find springfox-spring-webflux dependency in maven central repository,

 

Swagger ui throwing an exception for Hashtable when i use Newtonsoft.Json version 12.0.1

$
0
0

When i execute my application it throws an error when i use Newtonsoft.Json 12.0.1 dll :

 

Http Error 500 : { "Message":"An error has occurred.", "ExceptionMessage":"Type System.Collections.Hashtable& is not a dictionary." }

when i use Newtonsoft.Json 11.0.0 dll it works fine

Below is the API method called from the Swagger UI (http://localhost:54738/swagger/ui/index) :

[HttpGet]publicSortedList<int,XElement> getVariableStates(string sInstanceID,[FromBody]Hashtable oVarsDic){
 }

please find the screenshot of exception. 


Integration Of ReadyAPI Tests With Extent Report Using SOAPUI/ReadyAPI Maven Plugin

$
0
0

Hi ,

I want to integrate extent report(http://extentreports.com/) with readyapi tests so that I can get extent report for the executed tests using soapui/readyapi maven plugin.
Can you please help me on this since I tried googling about the same but couldn't find sufficient information.

 

Thanks
Surender

The Burp - Last Test Step Runs Twice when running at the Test Case Level (SOAP)

$
0
0

I'm might be doing something wrong, but when I run my Test Cases (it's data-driven), after the last step (Step [ReadData] ran with status [OK], it runs the last Test Step again.

 

When I run just the Groovy code portion, it's reading the correct # of times (see attachment).  Here I've added a couple of log info stmts to show this.

 

I don't have any Setup or Teardown scripts - just the Groovy code and the Request/Response.  And yes, the spreadsheet has 6 rows of data and all the input values are different.  I have a variable in the SOAP Request and use Assertions - but I just disabled the assertions and it still "burped."

 

Here is my Groovy code:

import jxl.*
import jxl.write.*
import com.eviware.soapui.support.XmlHolder
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
Workbook workbook = Workbook.getWorkbook(new File("c:\\SoapUIData\\Fahrenheit-Temps.xls"))
//The writeable sheet will erase any data, so we can't use the data sheet and update it with the results
WritableWorkbook copy = Workbook.createWorkbook(new File("c:\\SoapUIData\\Fahrenheit-Chart.xls"), workbook);
WritableSheet sheet1 = copy.createSheet("Fahrenheit to Celsius", 0)
Sheet sheet = workbook.getSheet(0)
def rowCount = sheet.getRows()

for (r=1; r<rowCount; r++){ //r=1 skip header row
log.info "Line 13"
//Write columns headings
Label H1 = new Label(0, 0, "Fahrenheit Value Submitted"); //1st column heading
sheet1.addCell(H1);
Label H2 = new Label(1, 0, "Expected Result"); //1st column heading
sheet1.addCell(H2);
Label H3 = new Label(2, 0, "Actual Result"); //1st column heading
sheet1.addCell(H3);

//Read a Fahrentheit temp
valCellContents=sheet.getCell(0,r)
cellContents=valCellContents.getContents()
FAHRENHEIT = cellContents.toString()
testRunner.testCase.setPropertyValue("Fahrenheit",FAHRENHEIT)
Label fh = new Label(0, r, FAHRENHEIT); //1st column
sheet1.addCell(fh);


// Below I'm going to use the properties to perform assertions
valCellContents=sheet.getCell(1,r)
cellContents=valCellContents.getContents()
EXPECTEDRESULT = cellContents.toString()
testRunner.testCase.setPropertyValue("EXPECTEDRESULT",EXPECTEDRESULT)
Label expectedResult = new Label(1, r, EXPECTEDRESULT);
sheet1.addCell(expectedResult);

testRunner.runTestStepByName("FahrenheitToCelsius-Request")

//Get Celsius temp fromCelsiusValue Response
def res = context.expand('${FahrenheitToCelsius-Request#response}')
def response = new XmlHolder(res)
def CelsiusValue = response.getNodeValue('//m:FahrenheitToCelsiusResult')

//Write the actual result in 3rd column
Label label = new Label(2, r, CelsiusValue); //3rd column
sheet1.addCell(label);

} //Gets next row
log.info "Line 51"
copy.write();
copy.close();
workbook.close()

 

Here is the Soap Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://webservices.daehosting.com/temperature">
<soapenv:Header/>
<soapenv:Body>
<tem:FahrenheitToCelsius>
<tem:nFahrenheit>${#TestCase#Fahrenheit}</tem:nFahrenheit>
</tem:FahrenheitToCelsius>
</soapenv:Body>
</soapenv:Envelope>

 

Thanks in advance.

Is it possible to pass custom properties value to command prompt?

$
0
0

1) I have a TestCaseA that store some value :

Name: ID

Value: 10

2) I need one batch file able to pick up the ID that has been store to SOAPUI Custom Properties.

3) Run the batch file

 

Reason: The batch file will run the TestCaseA multiple times and in the batch file, there will be some action where the command will store file into C and transfer file.

 

Question: Is it possible groovy script able to do the same?

 

 

Auto Generate Tests from Web Services

$
0
0

Hello,

 

I have a projects which has a lot of Rest/SOAP Services.
to test them i need to write Tests for each of them.
I wonder if there is a way for SoapUI to auto generate a basic Tests for all my WebServices and then i can customize them if needed.
PS: I am using Soapui maven plugin.

 

Thanks

Get test execution log for current execution and post it to JIRA

$
0
0

Hi,

 

I am testing a desktop application and we have JIRA integration using Zephyr API for reporting the results at runtime.

The basic flow of execution is this:

  1. Create Test cycle in JIRA - API
  2. Add a test case in JIRA (which is about to be executed in TestComplete) - API
  3. Execute the test case - TestComplete
  4. Update test case status in JIRA with execution result - API

 In the fourth step I want to update the test case status along with the Test execution logs for the current test run so that in case of failure I can get first hand information from JIRA itself about what went wrong.

I am looking for a way to get current test log (preferably for latest executed test case) so that it can be sent to JIRA through an API. In the documentation I couldn't find anything related to this, so if anyone has come across similar requirement and have worked on it kindly let me know.

 

Thanks,

Yusuf Malak

 

Problem installing Swagger-PHP

$
0
0

Hello guys, I need help.

I've been working to solve this for a week now but still can't find any solution.

My problem is,
when I installed swagger-php's library to my project, the `OpenApi` folder didn't come with it. I tried reinstall it but still didn't solve it.

Can someone help me please? Thanks Smiley Happy

 

http://www.sitte.ir/

how to run the update statement in test complete

$
0
0

VB script

 

Function Sq_QryUdate(field,value )
'Create a query

Set Qry1 = ADO.CreateADOConnection

'Specify the connection string

Qry1.ConnectionString = "Provider=IBMDA400.DataSource.1;Persist Security Info=False;User ID=XXX;Password=XXX;Data Source=XXX"

Qry1.Open()
'Specify the SQL expression
Qry1.Execute="Update statement"
Qry1.Close()


 

The above does not work as expected.


Swagger Inspector

$
0
0

I loaded petshop example - provided by swagger team. I try to use this example of openApi 3.0 it has errors.

I dont receive errors with the V2 though. Does Swagger Inspector supposed to support openApi3.0?

Thanks

Issue stopping the tests

$
0
0

Hi,

 

I am not able to stop the tests in the SOAP UI Pro. I see this error at regular intervel. Due to this, I need to kill the ready API and re open it. Please advise. 

 

Mon Apr 22 15:57:00 EDT 2019: WARN: Test Monitor: A test model item was started again before it could finish the current run [model item ID: 66e7c835-0089-437c-8deb-55c345aeb4fe].

 

Thanks,
Rama

Integrating TC tests into TFS Build Definitions

$
0
0

Hello,

   Ive managed to integrate TC tests into VS and get them to run when I queue a build in TFS. My question is has anyone built out an entire test automation framework in TC and have a suite of tests run when a build is deployed? How do the tests get distributed? If I have a Build Task that contains mutliple host machines to reduce the overall execution time for all of my scripts, how is the order of test execution determined? for example, some tests have pre req tests that must run and pass before they are ran, eg. data prep upstream. If there is a case study on how this is done or any help suggested is appreciated. 

 

ServiceV routing

$
0
0

Hello Community!

 

I have a similar case as this one: https://community.smartbear.com/t5/ReadyAPI-Feature-Requests/ServiceV-selective-routing/idi-p/106004

 

Initially I was asked to route the request to a virtual/real service depending on a query string value. I was able to get that done with no problem. Routing option and dispatcher made it to work as expected but now that it's set up like that I have another request.

 

Dev Team wants me to send the request over real service and if response return a code such as 404, 500, 504 then re-route to virtual service instead. 

 

I just want to confirm if there will be a tool limitation or if is something feasible to create. To be honest I'm not even sure if Smartbear would be able to capture the reponse from the real service to eventually place the values into a dispatcher scripts.

 

I don't want to say NO! without giving a try. 

 

Feel free to give your opinion! 

Cross Project: Multiple Project in One ProjectSuite

$
0
0

How can I run different project in one ProjectSuite. TestComplete did not allow me to copy/drag the test item from another project. I would like to run Project A, after that Project B, and lastly Project C automatically.

 

Is there any recommendation for me to run three different project in a row?

Viewing all 21160 articles
Browse latest View live