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

pattern regex

$
0
0

pattern: "[0-9]{5,10}, message = transaction_type: must be number only from 5 to 10 digits"

 

Can you help me with the above syntax used in Swagger Editor?  It this the correct syntax.  It does not work.  I would like to have the message if error?  Thank you


Custom validation using JSR380

$
0
0

Can you help me with the syntax for customer validation in swagger?  I know how to create the interface manually, but cannot find any example of how it is done in swagger editor.  Thank you

One environment for multiple databases connection

$
0
0

Hello,

 

I need help to set up multiple databases for each environment. Greatly appreciated if you can provide some insight for me.

 

Details:

 

I have an API endpoint that contain multiple methods.  Not all of them are using the same database to get the data as the response.  I know how to set up multiple environment and link each environment to each database.  I like to know if anyone out there has the same scenario like me to have multiple databases for the same environment.

 

Thank you for your help.

Web Testing Internet Explorer Scrolling Out of Control

$
0
0

When we run we tests in IE we have a strange issue:

 

between most keyword test steps the browser will scroll to the bottom of the page, then back up to the control being used.  It is extremely jarring when you are trying to follow a test and I have had a test lockup on me while it is quickly scrolling up and down the page.

 

Not sure why this is happening, it seems to only happen in IE.  It has gotten worse since we upgraded to 14.2

I want the data/ values comparison of a xml-file on my system with xml response of a rest API call?

$
0
0

In Ready API, I want to perform data/ values comparison of a xml-file on my system with xml response of a rest API call? Can someone help or knows how to resolve the issue step by step?

 

Thanks.

Property Expansion Dynamic Expression issue with brace character.

$
0
0

Here is my Property Dynamic Expression:

${= use (groovy.time.TimeCategory) {2.years.from.now.format('yyyy-MM-dd')}}

 

Upon evaluation, this trows this error:

startup failed:
Script47.groovy: 1: expecting '}', found '' @ line 1, column 71.
.from.now.format('yyyy-MM-dd')
^
org.codehaus.groovy.syntax.SyntaxException: expecting '}', found '' @ line 1, column 71.
at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:143)

Well. I understand that I cannot use braces but then how can I achieve my goal ?

Isn't there a way to escape the braces ?

 

Thank you.

Pierre

Setting Filters on Infragistsics Ultragrid

$
0
0

Hi,

 

I am trying to set a Column Filter in Infragistics Ultragrid object. I am not able to find any method or object that I can access to achieve this. The area where the filter is located (between header and firstrow) doesn't show up in Object Spy (it ony shows when I click on it but that comes as a general text editor without any column data).

 

Kindly let me know if anyone has achieved filtering on Infragistics Ultragrid and how they achieved it.

 

Thanks,

Yusuf

ApiParams placeholder still contained in curl-call

$
0
0

Hi at all,

 

we are using swagger 2.4.0 and have a problem with the following code:

 

idea64_2019-10-24_11-27-30.pngSource code

chrome_2019-10-24_11-24-18.pngSwagger UI documentationchrome_2019-10-24_11-25-13.pngSwagger UI requestWhat am I doing wrong? This leads to a "NoHandlerFoundException" due to the fact, that the placeholder "{?data,type,time}" is still contained in the called URL.

 

Any ideas how to fix this?

Thanks in advance...


Greyed-out objects in Object Browser

$
0
0

Does anyone know the reason for this?

Capture.PNG

 

The web page is fully loaded but these controls only seem to be populated much later on and it's causing playback problems.

 

It should be mentioned that Panel(4) is visible-on-screen but  TextNode(0) is not, but it's childeren are!

 

I have tried changing the "Search for visible objects first" option and neither checked or unchecked makes any difference.

 

Will using "RefreshMappingInfo" at the start of testing help?

papaparse in javascript

$
0
0

Hi Team,

 

please let me know how to use "papaparse" to parse a csv file.

 

Kind Regards,

Krishna

Read csv using Javascript

$
0
0

Hi everyone,

 

can any one guide me how to read a csv file using ado connection using javascrip.

 

Regards,

Krishna Kumar

EV Request using SOAP CA certificate

$
0
0

Hello

Can you help me solve the "Signature could not be verified" issue.

Attached find the screen shots. I am using SOAP 5.5.0

Regards,

Mohanavalli

Add the responses to a list in Mockservice's OnRequestScript and refer it in the Project's testsuite

$
0
0

I have a mockservice that listens on port 80 and receive the JSON callback from a API server. Rightnow im using the below code in OnrRequest script to get the response and assign it to a project's property like below.

mockRunner.mockService.project.setPropertyValue("ResponseBody",requestBody)

In the testsuite, i poll for the "ResponseBody" and when it gets some value then I read the responsebody value and process it in the testsuite. After processing i will move to the next hit. The polling/waiting is consuming time and instead of waiting for the callback response i want to complete all the hits and finally process the callback responses collected in the mockservice. Is there anyway to collect all responses in the mockservice and refer the list in the testsuite?

i tried below but Im not sure whether its correct or not.
In the Mockservice's "Start Script" i put the below code
def mockList=[]
context.setProperty("MockResponseList",mockList)

In the Mockservice's "OnRequest Script" i put the below code
def requestBody = mockRequest.getRequestContent()

def jsonResponseList=context.getProperty("MockResponseList")
jsonResponseList.add(requestBody)

1)but i dont know how to refer the above jsonResponseList in the project's testsuites
2)jsonResponseList will stay the same for each OnrequestScript call? or it will be unique?
3)Is there anyway to collect all responses in the mockservice and refer the list in the testsuite?
4)What is the best way to collect all responses and process in one go?

Facing problem to send report via email

$
0
0

Hi Facing problem to send report via email.

I have gone through Sending report tutorial for same on smartbear website but not clear with the process.

I can see "Send via E-mail" option above test log but after click on it nothing happend.. How can i specify any mail id where i have to send the report and from which mail id this mail is going.

Can anyone clear this Please?

 

Also want to know Which one is best way to send a report to client  ? What people mostly prefer to send a report via Test Complete tool?

Exported log file cannot be opened

$
0
0

Hi,

 

I used the Log.SaveResultsAs method to export the log file on my local machine, but when I am having difficulty to open the file. Does anyone know how to fix this?

Capture.PNG

Thanks in advance.


How to run multiple test suites from Jenkins?

$
0
0

I have a set of test suites in my project. I just want to run couple of test suites. How can I achieve this? I have to run it from Jenkins.

The TCHookX86.exe process has not responded for 5000 ms

$
0
0

Hi all,   I have a machine that I am trying to install Test Complete 14.20 on.   It will not run in x64 mode.  I get the following error:

 

Either the installation files or registry data are corrupted or not accessible. Reason: The TCHookX86.exe process has not responded for 5000 ms.
The application will be shut down.

 

TC will run if I launch the x86 mode but not x64  

 

More Info:

I have 2 Machines.  I installed Test Complete and Test Execute 14.20 with no problems on a new machine Win 10 enterprise 1903.  It works fine.  

I have another machine that had wiped and reinstalled the OS.   Win 10 Enterprise 1903.  Both machines are setup and on a domain that is managed by IT.  It will not run in x64.  I installed in the default location. 

 

After I got the error the first time, I uninstalled the product.  I went and found every folder related to smart bear and deleted them.    I have reinstalled this twice.   Still the same error.      Before I wiped the OS, I had TC 12 on the machine and it ran no problem.  Anyone else having this issue?  What are my next steps?   Any log files besides event viewer that  I can look at?

 

Event viewer:

The description for Event ID 0 from source TestComplete cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Either the installation files or registry data are corrupted or not accessible. Reason: The TCHookX86.exe process has not responded for 5000 ms.
The application will be shut down.

 

Thanks

Java datetime groovy.lang.MissingPropertyException: No such property: executionTime for class: Scrip

$
0
0

I am trying to read current datetime in SOAPUI groovy script class. The code works in CST timezone.

On a different machine in India IST timezone (Java version is matched 1.8) it is giving error

 

ERROR [errorlog] groovy.lang.MissingPropertyException: No such property: executionTime for class: Script1
groovy.lang.MissingPropertyException: No such property: executionTime for class: Script1

 

Here are the code lines

def executionTime = new java.text.SimpleDateFormat("MM-dd-yyyy' 'hh:mm").format(new Date())
groovyUtils.setPropertyValue("Results", "executionTime", executionTime.toString())

 

I have NOT included

import java.util.*;
import java.util.Date;

 

Interestingly 

In another groovy script class this is working.

import java.util.*;
import java.util.Date;

//Set current date and time in 24hr Date Format
def currentDateAndTime = new java.text.SimpleDateFormat("yyyy_MM_dd'_'HH_mm").format(new Date())
testRunner.testCase.setPropertyValue("currDateTime", currentDateAndTime)

 

I am not getting much overlap time to debug, So it is tricky. Appreciate any hint or tips that would resolve the issue.

Kindly request for any more info.

 

Task Bug tracking with JIRA and PTC in one Collaborator instance

$
0
0

Hello,

 

as we use both tools in our company, I wounder if it is posslible to link at least two different task tracking systems with collaborator. This would make our tool usage mutch more flexible. Depending on the development team, we could decide if we track found issues with PTC Integriety or JIRA.

 

Thanks for your help.

Option keyword is not working on firfox using Jscript for web automation

$
0
0

Hi Team,

 

I am unable to use the option keyword while getting all the values of dropdown in firefox. Is there any other way to get all the dropdown value ?

 

Example:
if (desiredObject.Exists) {
Log.Message("Dropdown list Found");
var opts = desiredObject.options;     // This line on working of IE but not for Firefox
for (i = 0; i < opts.length; i++) {
ddlArray[i] = opts.options[i].value;

}

 

Thank You.

Viewing all 20990 articles
Browse latest View live