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

Working with project variables in Testcomplete

$
0
0

I have a requirement to execute a set-up method before executing all the tests. And this set-up method is supposed to have 10 global variables and intializing those within that method. So adding this piece code each time i want to a add a global variable.

Project.Variables.AddVariable("Plugin_table","String")
 Project.Variables.Plugin_table = "Testing"

And each time before i begin to run a test i need to make sure i wipe out all the variables before running the test with the below code, but it does not work well. The reason why i try to delete is because it does not let me add the same variable since it already exists due to the previous run as a persistent variable.

varcount = Project.Variables.VariableCount
for i in range (0,varcount):
  if Project.Variables.VariableExists(Project.Variables.GetVariableName(i)):
    Project.Variables.RemoveVariable(Project.Variables.GetVariableName(i))

Has anyone worked with such a scenario before?


TC 14 and TFS 'project node is write-protected'?

$
0
0

I have new copy of TC 14 installed on my local PC.  We are using TFS for source control.  I did a get latest from source control to my local PC and the let TC 14 convert the project suite. There were many read only permmisions issues opening the project suite after the convert and now each time I open the suite I get the following dialog.  Any suggestions?

 

 

ProjectNode.PNG

 

Null pointer and SLA errors with 1 VU

$
0
0

I'm new to SOAP UI and Load UI and I'm not a developer so please bear with me.

I've created an API request that will create a service request record in one of our applications.

The script runs fine in SOAP UI.

I've created a Load UI test based on the SOAP UI test.

I've used the default template.

I've set the VUs to 1 and run the test for 1 minute.

 

Issue #1

 

I'm getting between 1 and 3 Response did not meet SLA messages with times between 2 and 12 minutes.

I'm surprised I'm getting any performance related errors with a load of 1 users but is there a way to increase the SLA default of 200 ms?

 

Issue #2

 

After each run of the test, I get 2 null poiner exceptions:

CancelExecutionRABackwardCompatibilityLoadTestRunner.getCounterValue
CancelExecutionRABackwardCompatibilityLoadTestRunner.getTargetExecutionCount

 

I'm happy to add more specific details if it'll help.  Thanks.


Steve

Modifying a script to compare PDF's

$
0
0

Hi!

 

I have a script that uses Acrobat DC to perform a PDF comparison. I need to add two more steps in the script in order to make a effective comparison. I'm not sure how to correctly map to the locations to perform a click and insert action. Are there any examples I could use for referance? Or documentation instucting how to use Object Spy to map a location?

 

Currently, the script clicks the comparison icon, which causes Adobe to make a comparison report, and then Test Complete performs a region check point on the results page.

 

Before the checkpoint is performed, I would like to first click the "New File" icon and change the zoom to 100%. See the screen shot attached. The tricky part is that Test Complete's object spy does not see "New File" as a object.

Script is below for referance!

 

Thanks!

 

//Compare
acrobat.wndAcrobatSDIWindow.AVFlipContainerView.AVDocumentMainView.AVFlipContainerView.AVScrollView.AVTableContainerView.Click(957, 600); // Clicks compare icon to generate report

acrobat.WaitWindow('AcrobatSDIWindow', '[Compare Report]*', -1, 30000); // delay
// (Select "New File" here)

// (Change zoom to 100% here)

//Take Region Checkpoint for expected differences
var pdfCheckpoint = eval('Regions.' + Project.Variables.PDFRegionCheckpoint);
pdfCheckpoint.Check(acrobat.wndAcrobatSDIWindow.AVFlipContainerView.AVDocumentMainView.AVFlipContainerView.AVSplitterView.AVSplitationPageView.AVSplitterView.AVScrolledPageView.AVScrollView.AVPageView, false, false, 2000, 8);

 

 

 

 

Properties Not Transferring sometime when running on parallel run type

$
0
0

Properties Not Transferring sometime when running on parallel run type

Using Ready API 2.6 Version 

I am using Property Transfer Step to store property on Test case level from there i am calling to TestStep 

 

 

Find, FindAll, FindChild method cannot used in windows server 2019

$
0
0

Hi team,

We found that our test case based on test complete 10 is running well in windows server 2012, however, recently we run the same case on windows server 2019, it is not running stable and  met error at "Find" ,"FindAll", and ”FindChild“ method.  We really don't want to update our TC version. Do you have some advice or solutions for this issue? Thank you 

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

WSDL not recognized for SAP web service

$
0
0

Hi Team,

I have requirement to test SAP web services in SOAPUI tool.

In order to test the web service what are all the initial setup need to do?

Thanks.


Unable to add WSDL file in SOAP Project

$
0
0

 

 

Hi Team,

I am trying to add WSDL file in SOAP Project. its gives error as attached.

Thanks.

Maven, special character encoding

$
0
0

Some time ago, I posted this question about sending request having special character (like "éèàù") inside of them. The problem is now fixed, however, when I try to launch my test using maven, I have the same problem again.

 

Here is my pom:

<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.myproject.soapuitest</groupId><artifactId>running-soapui-test</artifactId><version>1.0-SNAPSHOT</version><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><pluginRepositories><pluginRepository><id>smartbear-sweden-plugin-repository</id><url>http://www.soapui.org/repository/maven2/</url></pluginRepository></pluginRepositories><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.1.0</version><configuration><encoding>UTF-8</encoding></configuration></plugin><plugin><groupId>com.smartbear.soapui</groupId><artifactId>soapui-maven-plugin</artifactId><version>5.5.0</version><dependencies><dependency><groupId>com.jgoodies</groupId><artifactId>jgoodies-forms</artifactId><version>1.9.0</version></dependency></dependencies><configuration><projectFile>myproject-soapui-project.xml</projectFile><outputFolder>${project.basedir}\output</outputFolder><junitReport>true</junitReport></configuration><executions><execution><id>soapUI1</id><phase>test</phase><goals><goal>test</goal></goals></execution></executions></plugin></plugins></build></project>

As you can see, I tried to set the encoding to UTF-8, but with no success (so far). 

 

So, any suggestions as how to fix this issue?

Tag in ReaadyApi

$
0
0

Can any one pleae explain how the tags work in readyApi, when you run from commandline, testrunner.bat. I can not use what is written in the documentation https://support.smartbear.com/readyapi/docs/soapui/running/automating/cli.html#_ga=2.197920108.2145816237.1553073610-857303722.1547120448.

I have testSuites and testCases, some of them taget and some not. Let us say testSuite1 has tag 'regressionTest', testSuite2 has tag 'unitTest' and testSuite3 has tag 'smokeTest'. How should I write on the commandline if I only want to run the testSuite tagged with 'regressionTest'. I have tried 

>testrunner.bat -f"%WORKSPACE%\output1" -FPDF -j "%WORKSPACE%\my_project" -T"TestSuite regressionTest"

but I still get the whole project run. I appreciate your answer.

And what does this mean? 

The specified tags must be assigned to the test cases and test suites that you specify by using the -s and -c arguments. Otherwise, there will be no tests to execute.

Do I need to write every testsuite with -s and every testcase with -c before I can use the Tag? Please any noe can explain?

How to record a mouse rotative picking as on-screen action

$
0
0

Hi,

during my record I made a rotative picking (left click enable I made  one or more right clicks), actually TestComplete record two on-screen actions: one click then one clickR.

How to do to record left click enable + clickR on one action?

Regards

FaC

Swagger Hub open api 3.0.0 server stub spring is not generating the Gradle project

$
0
0

When I try to generate a server stub spring project from Swagger Hub open api 3.0.0 then it's generating Maven project with pom.xml inside the generated code. However, I need to generate a gradle project from code gen, but I do not see any option to change this to generate a gradle project. Anyone has gone through this issue? Someone help me with this.

Name Mapping do not find any unique properties

$
0
0

I  am working on the application for which the Name mapping everytime the nw version of the product is installed .

 

have attached the pdf file to check for details.

 

Please advise what will be the stable name Mapping for the object 

 

Thanks

Nishchal

TestComplete will not go to Else - just throws error

$
0
0

Been experiencing some wierd issues with my IF statements lately in testcomplete.. 

IF the statement IS NOT true I will get an extremely long hang/timeout, or in this case with the code below, I will just get a error in log saying "object doesnt exist" when it is obvious that I want it to go to ELSE.

 

Any advice for this?  thanks

 

if (Aliases.browser.webpage.cell0_grid.link.VisibleOnScreen == true)
{
Log.Message("Item ID is visible on screen")
} else {
Log.Message("Item ID is NOT on screen")


Unable to add WSDL file in SOAP Project

$
0
0

 

 

Hi Team,

I am trying to add WSDL file in SOAP Project. its gives error as attached.

Thanks.

Service V and WS-Addressing

$
0
0

Does ServiceV, or the VirtServer, support WS-Addressing in any way?

This page can’t be displayed Error : Loadcomplete while recording

$
0
0

Hi Team,

 

I have just started with LoadComplete and pretty new. I am trying to record a user scenario. Once I start recording the page on browser doesn't get load(IE or Chrome) and get error : This page can’t be displayed. 

No traffic gets recorded. 

 

Once I stop recording My testing website gets loaded perfectly. The issue occurs only when I try to record with LoadComplete. 

 

I checked the Proxy settings under : Tools--> Options--->Network--> Proxy. The MOde is set to Use System Proxy. 

 

Any help in this regards is highly appreciated. 

 

Thanks,

Rohan

Set the value of a test case property on xpath in property transfer

$
0
0

I m trying to add a property transfer from rest response to a test case level custom property. From rest response, I want to exact 'id' by 'name' and set the value as test case level property
My XPath is as follows 

//*:e[*:name = '${#TestCase#CLContractName}']/*:id

But this is returning null 
If I directly set the value then it's setting the value correctly 

//*:e[*:name = 'BY-12223']/*:id

My sample xml as follows 

<Response xmlns="https://training-app.labs.com/api/v1/investor"><items><e><id>48223</id><name>LAI-00151007</name><amount>25050.0</amount><interest_rate>25.99</interest_rate><term>60</term></e><e><id>48262</id><name>LAI-00152581</name><amount>44225.0</amount><interest_rate>18.9</interest_rate><term>36</term></items><total_count>13</total_count></Response>


Please advise me what is the correct format and what I am doing wrong here? Thanks 

Modularizing your tests

$
0
0

On this page https://www.soapui.org/docs/functional-testing/modularizing-your-tests.html,

it shows a "Run test case options" screen.  I cannot figure out how to navigate to this screen and I've run hundreds of test cases in 5.4.0.  My test cases have a Groovy test step and a SOAP Request/Response. 

 

Is this an old version of SoapUI?  Has it been replaced by Test Runner?  I don't see the same options like "create isolated copy for each run (thread safe)" and Return Properties.

 

Thanks in advance.

Viewing all 20755 articles
Browse latest View live