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

Why TC12 won't trigger .exe file from "D:\" partition?

$
0
0

Is there any reason why TC12 will not trigger .exe file from "D:\" partition, while the same exe file is being run properly from "C:\" partition? JS is being used as a scripting language, Win10 OS. 

For an istance command: 

var rootFolderPath = "D:\\TFS TestComplete\\EMSPREREQUISITES\\AdobeReader";

Sys.OleObject("WScript.Shell").Run(rootFolderPath + "\\" + adobeFilePath.Name);

will throw an error:

"Error The system cannot find the file specified. Error location: Unit: "DVS EMS\Post Elections\Script\PrerequisiteInstallation" Line: 18 Column: 34.

Error
The system cannot find the file specified.
Error location:
Unit: "DVS EMS\Post Elections\Script\PrerequisiteInstallation"
Line: 18 Column: 34."
while the same line will execute properly when the file is on C partition:
var rootFolderPath = "C:\\AdobeReader";
Sys.OleObject("WScript.Shell").Run(rootFolderPath + "\\" + adobeFilePath.Name);
 
Any kind of suggetion is welcomed.

Script Assertion not running when request failed[Connection refused] in request log and no response

$
0
0

Script assertion in my API request is not running when request log shows Connection refused and there is no reponse.

This happens when i run the test case as a set with multiple steps and if i run the API step manually, the assertion seems to work?

How come?

I want the script assertion to run even if the request fails as i am reading the Error log of ReadyAPI via groovy script and doing an assertion

Is there a way?

UI

$
0
0

When the user minimizes the UI and then Maximizes it return with very small fonts that are so small can't see it. 

attach job to ccollab

$
0
0

Hello,

 

I am using ccollabgui application with the following parameters to submit the code review.

 

--pause-on-error --scm perforce --p4port $p --p4user $u --p4client "emptyArgumentPrefix $c emptyArgumentSuffix" addchangelist ask %C

 

can I add job to the above arguments. I tried selecting '%j' or '%J' but error is thrown. Can someone help me to find a way to attach job ID while submitting the review.

 

Thanks.

 

 

The testleft sals promise

Use Image from Image repository using for Loop

$
0
0

Hello Team,

Scenario:

"ImageRepository" has few images:

      ImageSet:

                     Image_1

                     Image_2

                     Image_3

                     .

                     .

                     Image_n

 

  • I can simply make "If_else"  and make multiple nested if's and Can use the following Statement:

         ImageRepository.ImageSet.Image_1.ClickM()

 

But How can use "for loop" and call the image from Image repository?

Like,

for n in "456":

  ImageRepository.ImageSet.Image_n.ClickM()

 

How to select nodes matching criteria

$
0
0

Hi all,

Because large number of <c> elements in the response my checks take very long (hours). See simplified respresentation of response below. The actual response has much more elements.

<a><b><c><d>1</d><e>2</e><f>3</f></c><c><d>4</d><e>5</e><f>6</f></c><c><d>7</d><f>8</f></c><c><d>9</d><e>10</e><f>11</f></c><c><d>12</d><f>13</f></c><c><d>15</d><e>16</e><f>17</f></c></b></a>

See example of my code to process response below:

int totC = respHolder.getNodeValue("count(//b/c)").toInteger();
for (int i=1; i<=totC; i++) {
	if (respHolder.getNodeValue("exists(//b/c[$i]/e)") == "false") continue;
	// rest of my code
}

I have calcutated that only 40% of the <c> elements have an <e> element. So I am looking for a way to only get <c> elements that have an <e> element.  Then loop through them. How can I do this?

 

Thanks in advance.

"Unable to upload the test log to the server."

$
0
0
Hello all - I have an automation test linked from TestComplete to QAComplete. The test executes fine in TestComplete, but when I run the test in QAComplete I get the following error: "Unable to upload the test log to the server." Any ideas how to get around this? Thanks!

SOAPUI utilise Windows Certificate Store

$
0
0

Hi All,

 

I am utilising SOAPUI to connect to an internal https web site that requires a Client Certificate. The Client Certificate is in the Local Windows Servers Certificate Store (Local Computer) and is the Private Key version. I am unable to export the Certificate due to security restrictions placed on the server.

 

Therefore, what I need to do is point SOAPUI at the Certificate store, specifying the client certificate that I'd like it to use for the connection to the SSL website. What I have seen throughout the internet is information on using a Client Certificate by exporting as a pfx, and pointing at the pfx file.....unfortunately this isn't possible so can I point SOAPUI at the local certificate store instead?

Can't access step properties in a REST Post method

$
0
0

Hello,

I'm trying to access properties from a step called "Properties"

The standard use for such case is to do so :

Capture d’écran 2018-11-29 à 16.27.32.png

 

but it's not working !

Media type is multipart/form-data and post queryString should be unchecked.

any help please ?

Missing Method Exception

$
0
0

Getting Below error 

groovy.lang.MissingMethodException: No signature of method: com.eviware.soapui.impl.wsdl.WsdlTestCasePro.setPropertyValue() is applicable for argument types: (java.lang.String, java.lang.Long) values: [gettime, 1543510643941] Possible solutions: setPropertyValue(java.lang.String, java.lang.String), getPropertyValue(java.lang.String) error at line: 18

 

Code : 

import com.eviware.soapui.model.testsuite.TestStepResult.TestStepStatus
import com.eviware.soapui.model.testsuite.TestRunner.Status
import com.eviware.soapui.SoapUI

// This Piece will get the current time in milliseconds and add 60 seconds

def m1 = System.currentTimeMillis()
//log.info m1

def m2 = new Date()
//log.info m2.getTime()

def newt = m1 + 60 * 60 * 1000

log.info newt

testRunner.testCase.setPropertyValue("gettime", newt)

 

Disabling Multi-process Mode in Firefox 63 causes TLS Handshake Issue Using Certificates

$
0
0

Firefox 63.0.3 (64-bit)

Windows 10 Enterprise (version 1803) OS build 17134.345

Installed RAM: 32 GB

Processor: Intel Core i7-7820HQ 2.90 GHz

 

Issue:

Disabling Multi-process Mode in Firefox 63 causes TLS handshake Issue while using certificates

 

Prior to following the "Preparing Firefox for Web Testing" recommendation for TestComplete, I am able to complete a secure connection using hard certificates using Firefox 63.0.3; however, when "browser.tabs.remote.autostart" is configured to "false", and I restart Firefox, a TLS handshake no longer completes and Firefox freezes. This freeze requires ending the Firefox process. 

 

Resolving this requires reverting "browser.tabs.remote.autostart" to "true", and restarting Firefox. *Note: In some cases it was necessary to conduct a hard reset of Firefox settings to their default state and reloading certificates. 

 

Is there a work around? 

Is anyone else experiencing this issue? 

 

Keep getting Warning More than 80% of the Java heap memory is being used.

$
0
0

Keep seeing the following message when the test reads JMS message: 

  • Thu Nov 29 10:21:00 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions

I have updated vmoptions file with the following 

-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx8192m

 

After updating the file and restarting Ready API i still have the same issue 

Error with access Excel using POI

$
0
0

I get the following error message when I run a groovy script to set value to a cell in excel.

 

An error occurred [org/openxmlformats/schemas/spreadsheetml/x2006/main/CTExtensionList], see error log for details

 

I've added the poi files to EXT .But that still doesn't solve the problem

Adding ooxml-schemas.xxx.jar file to LIB folder makes SoapUI stop working and throws error .

I've seen many posts on forums asking people to put ooxnl-schemas.jar file in LIB , but that doesn't work for me.

 

Can someone please help me here ?

 

Thanks in advance !

 

API script assertion not running when running from testcase although run from step is success

$
0
0

I have a testcase with one API for which Script assertion is used to ready the ReadyAPI log.

This script runs and passes the step when run from the step directly.

But when i run from the testcase level, it fails, not sure why this occurs.

My requirement is to run the script irrespective of pass or fail of the request because my script is reading the log to understand that.

The API request and script are as follows:


image.png

//https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-read-Request-log-from-groovy/td-p/29362#
def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea("ReadyAPI Log");
def model = logArea.model
if (model.size > 0) {
   val = false
   for (c in 0..(model.size - 1)) {
       if (String.valueOf(model.getElementAt(c)).contains("Connection refused: connect")){
       	log.info(model.getElementAt(c))
       	val = true
          break
       } 
     }
     if(val != true) {
     	throw new Exception("Assertion failed")
     }
  }
  else {
  	throw new Exception("Assertion failed here")
  }

 


Soapui-settings.xml hidden (Access Denied)

$
0
0

Hello everyone, sorry to bother you,

 

Sorry if this question has already been asked, I've checked mutliple thread but I don't find any answer to my issue.

 

Here is my problem :

 

Everytime I want to change any option in : File > Preference > Editor Settings menu, I've always the same message(screen1) : "java.io.FileNotFoundException : C:\User\XXX\soapui-settings.xml (acces denied)"

 

I've checked the logs :

  • Fri Nov 30 10:34:09 CET 2018:ERROR:An error occurred [C:\Users\apain\soapui-settings.xml (Accès refusé)], see error log for details.

Error logs (screen2)

 

I'm a bit stuck here... If anyone can help it would be great...

 

Thanks for the read and for your help.

 

 

 

 

 

 

 

Groovy command log.setLevel generates compiling errors after upgrading to ReadyAPI 2.5.0

$
0
0

Hi,

 

I am maintaining a project that contains a lot of groovy scripts with command 

log.setLevel Level.DEBUG;

 

If I upgrade to ReadyAPI 2.5.0 this generates compiling errors, as included library log4j 2 does no longer implement this method:

groovy.lang.MissingMethodException: No signature of method: org.apache.logging.log4j.core.Logger.setLevel() is applicable for argument types: (org.apache.log4j.Level) values:

 

Is there a simple one-line substitution possible for this command?

I have been looking around, but apache seems to suggest much more complicated solutions to manage control over log levels.

Now I just simply comment the lines with 'log.setLevel', as I am not so much interested in it now, but things may change.

 

Anyone? Thanks!

 

Albert

How to Extract value from CDATA

$
0
0
Let me explain my scenarion first. I have Request and Response . Both are having CDATA. While doing virtualization in ServiceV PRO I need to extract some specific value from Request so that i could set a condition to dispatch a response. Here is my question, How can i extract value from CDATA using query match dispatch style. so that i could make a mock Response. I'm awaiting for reply.

JDBC driver is already registered log spam

$
0
0

I have a lot of JDBC steps and groovy steps that use a JDBC connection in my testing. Every time I make a JDBC connection it logs this in the ReadyAPI Log. 

This is making the log very hard to use and actually see the real errors because of how much this "error" is spammed.

Does anyone know of a way to disable this logging? See example in the screenshot.

ReadyAPI_2018-11-30_14-02-06.png



Fixing javascript path issues

$
0
0

I have a function that gets a path from the registry.

 

It is in the form C:\folder\folder\folder\

 

Unfortunately, this won't work in my javascript functions. It needs to be of the form

C:\\folder\\folder\\folder\\

 

Is there a canned way to handle this, or do I have to write something convert this?

Viewing all 20073 articles
Browse latest View live