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

Controlling FTPTestStep from groovy

$
0
0

Hello there

 

I am currently stuck trying to transfer files with the FTP-Step provided in SoapUI. The files are generated before sending, and there may be a large amount of files to send.

 

The amount of files to send are determined after generation, I currently use a loop to iterate through all the files and add their information to the FTP-Step and then run it. Basically boiled down it's the following code:

new File(path).listFiles().each{
  ftpStep.setLocalPath(it.getPath())  ftpStep.setFileName(it.getName())
  ftpStep.run(testRunner, context)
}

Sadly the transfer seems to fail every time, providing the following error:

Unable to upload the file: null

Looks to me like the testRunner gets confused and is unable to apply the filePath properly. testRunner and context are passed down from the invoked variables.

 

If I execute the FTP-Step without any modifications afterwards, it sends the previously configured file to the server without problems, so I can only assume that something with the run() function is not working properly.

 

I would appreciate any sort of help or workaround - but just confirming my problem would be sufficient for me to create a bug ticket


[Education] Join the TestComplete Introductory training on February 11

$
0
0

Hey Community,

 

I want to invite you to the February TestComplete Introductory training. During one hour, you will learn what TestComplete is and how to work with the tool to get the most. The training will be super useful for those, who just start with TestComplete. You will be familiar with major product features and be able to create your first test!

 

The training is free. Join us on February 11at 10 AM EST / 3 PM GMT

 

>> REGISTER HERE

 

Introductory-Training-600x400.png

 

 

 

[Education] Join the SoapUI Pro Introductory training on February 20

$
0
0

Hey Community,

 

I want to invite you to the February SoapUI Pro Introductory training. During one hour, you will learn what ReadyAPI is and how to work with the SoapUI tool to get the most. The training will be super useful for those, who just start working with API testing in ReadyAPI. You will be familiar with major product features and be able to create your first test!

 

The training is free. Join us on February 20 at 10 AM EST / 3 PM GMT

 

>> REGISTER HERE

 

 

Introductory-Training-soapui600x400.png

 

 

 

Black Box only after click to textbox via Remote desktop - WINDOWS 10 RMD

$
0
0

Please help me.

 

When connected over a remote desktop on WINDOWS 10 PC (with Testcomplete 11.20 version 1491) , a black box (see on picture) always flickers when you run a test (or recording test) a textbox click action.

 

If I run the test directly on the monitor, without a remote connection, the black box is not displayed ..

 

Some advice how to solve it? Note: everything is ok on windows 7 and on same Testcomplete version

TestComplete Restriction when searching html

$
0
0

So I am writing a function for an app and TestComplete seems completely unable to the HTML level highlighted below.

I thin its a limitation on custom tags/elements?

If I use object spy it does not even show this level in the tree.

If I use an xpath to find all 'data-testid' items or the 'linq-results-sampleview' items it does not find them.

 

Any help or is it just not possible? With selenium it works straight away without issue but we use TestComplete only at work.

 

 

html.PNG

Rawresponse #status# - how to set Property Expansion value from this?

$
0
0

hi, 

using ReadyAPI 3.0 how do I get the value of "#status#" from RawResponse?

I want to output the value of "#status#" in a Datasink.

 

Does anyone have a good tutorial link on Property expansions? the Smartbear one from the Datasink component is not fit for purpose for a beginner.

 

Thanks in advance.

How to present an XML in a specific URL (.ashx)?

$
0
0

Hi, I am a novice developer and I am having a bit of difficulty with SoapUI.
Specifically, that is, how do I do in SoapUI to present an XML in a specific URL (which is .ashx).
I am sorry, but I do not know how to explain it better, hopefully this will help you solve my problem.
Please thanks.

File Explorer during Web Testing

$
0
0

Is there a best practice for how to navigate/select/open files during automation testing of web applications?

 

I have a test that during the application a file needs to be loaded. When the test selects the button which brings up the file explorer window to navigate/select/and load the file it works while on my machine. But once I run the test on a VM it no longer works even though the file is on an accessible drive and the window opens once clicked in the application. 

 

The error I receive is "The combo box items "All Files (".") not found.". This occurs even though the window is there. I also included a screen shot of the step in TestComplete. The "dlgChooseFileToUpload" step is where this test fails on the VM.

 

Thanks,

Mike


SOAPUI 5.5(MAC) Fails for EWS -- 401 Unauthorized

$
0
0

Hello Folks,

 

I am have a weird issue setting up SOAPUI connectivity to EWS. I have tried in past setting up the initial project with the provided WSDL and dont recall any issue however, I am trying to replicate that recently for the same webservices account and am getting "Receiving response: HTTP/1.1 401 Unauthorized"

 

Note: The only difference is earlier i tested when I was on windows desktop and now its a Mac.

Also note the previous imported projected from windows works fine on MAC including all its methods.

 

This is real bottleneck for me and is holding up my entire work backlog. Any assistance is greatly appreciated.

 

Thanks you

Raj

 

 

The WSDL used is internal like https://<servername>/Services.wsdl

 

Note: The URL requires authentication and works fine when accessesd via a Browser.

 

Things I have tried:

When I ADD WSDL to the project it runs logs like below and then Prompt for NT authenticationbut with No success. On that NT authentication pop up I have tried:

  • Provide domain\username, with its passowrd, and domain empty
  • Provide usermame , password and domain in their respective places

Change Preferences to use 1.0 for HTTP

Add credentials under "Outgoing WS-Seurity Configurations:

 

The failure mesage on UI :

Error loading [https://<servername>/ews/Services.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null

 

Logs are attached

Controlling FTPTestStep from groovy

$
0
0

Hello there

 

I am currently stuck trying to transfer files with the FTP-Step provided in SoapUI. The files are generated before sending, and there may be a large amount of files to send.

 

The amount of files to send are determined after generation, I currently use a loop to iterate through all the files and add their information to the FTP-Step and then run it. Basically boiled down it's the following code:

new File(path).listFiles().each{
  ftpStep.setLocalPath(it.getPath())  ftpStep.setFileName(it.getName())
  ftpStep.run(testRunner, context)
}

Sadly the transfer seems to fail every time, providing the following error:

Unable to upload the file: null

Looks to me like the testRunner gets confused and is unable to apply the filePath properly. testRunner and context are passed down from the invoked variables.

 

If I execute the FTP-Step without any modifications afterwards, it sends the previously configured file to the server without problems, so I can only assume that something with the run() function is not working properly.

 

I would appreciate any sort of help or workaround - but just confirming my problem would be sufficient for me to create a bug ticket

SoapUI 5.5.0 Why is resource being ignored for REST method?

$
0
0

I have a REST request with the following settings:

  • Method: POST
  • Endpoint: https://localhost:44301
  • Resource: https://localhost:44301/api/Ticket/Attachment (when I click on it, the popup dialog has it split into "https://localhost:44301" and "/api/Ticket/Attachment")

And these are the request headers that are generated by SoapUI 5.5.0:

POST https://localhost:44301/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 131
Host: localhost:44301
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

Why would the resource be ignored?  Am I missing a setting?

A better editor?

$
0
0

OK, been writing my own docs for programming and various technologies like APIs or importable classes/libraries for 30 years, heck I teach students how to do it... but the New Boss has mandated that we start documenting our REST stuff (and maybe generating stub code) with Swagger.  

 

So I've got my hub account and I've looked at the album artists example and I've managed to cobble together something that actually matches a real API end point (very simple one, one get and one post) for a project I'm currently working on.  Haven't even gotten to trying to export stub code, etc.  Just using the editor and playing with syntax.

 

My issue... the web hub editor sucks.   Web editors in general do, since browser hot keys often interfere with what I'm used to doing in an IDE or even in just a plain text editor.  Being forced to work in vi with no console mouse/gpm support would be almost preferable to using the web editor.  At least then I'd know the keyboard shortcuts... 

 

So... looking for either a stand-alone editor (win10 at work, Linux at home) that is not just a re-packaged web-app (and no,  a plain text editor should not require a webserver!), or a plugin for Notepad++ (or Geany) or a plugin for our Eclipse-based IDE.  All the typical features are requested of course - syntax highlighting, auto-complete of key words, linting would be nice, and if the langauge depends on white space then an auto-format that is text-based-syntax aware.

 

 

Can define the type of data as Set?

$
0
0

We can define array like this in components->schemas

 

"arrayExample": {
            "type": "array",
            "items": {
              "$ref": "#/someObject"
            }
          },

how to define a set ?

The process can not access the file because it it is being used by another process.

$
0
0

Can not open file "....path.............\tunnel.log". The process can not access the file because it is being used by another process

 

I am performing crossbrowserTesting but several times found above issue.

 

I do'nt know what is the exactly reason and how can fix this ?

Unable to see OData API under swagger documentation

$
0
0

Hi,
We are having OData API in our application for which we are using swagger documentation. We are registering OData routing in WebAPI.config in our application start event(global.asax). After that in same WebAPI.config register event we are registering swagger documentation. Previously it is working fine but due to some performance issue we are trying to register oData routing asynchronously in background thread. So routing registration works fine but now we are unable to see swagger documentation for that API. Is anything we are missing. 


Error: There was an attempt to perform an action at a point, which is out of the window bound

$
0
0

I have encountered an error: There was an attempt to perform an action at a point, which is out of the window bound while running test using Testcomplete 14 . I have recently migrated all my tests from TestComplete 12 to 14 and When i run my tests over the jenkins pipeline I encounter with this error. Please help me to understadn why and when an action performed using testcomplete will become out of the window bounds.

 

 

Attaching herewith screenshot for reference.

 

Regards,

Arun K

TestComplete with Microsoft Chromium Edge

$
0
0

Hi,

Does test complete support the new browser Microsoft Chromium Edge. Anyone tried using it yet?

Thanks

JSON body not showing in raw tab

$
0
0

Hi,

 

i'am using ReadyApi 2.8.2 to test POST web service,i put the JSON body in the testStep's Request.After executing the testStep i can not see the whole JSON body in the raw tab. can anyone help me with this problem

 

Thank you for your help 

How to document resource at base path of application

$
0
0

Hello , i have java project using resteasy services and basic swagger config via application class. When i access openapi.json file at my applicaiton url  its seem swagger skip to document the method which is  on root path "/". I have this problem when the base path is "/".  My generated json file is bellow with the dependancy i use and sample code:

I ll be glad if somoene help!

@ApplicationPath("/")
public class Application extends javax.ws.rs.core.Application {

	@Override
	public Set<Class<?>> getClasses() {
		return Stream.of(PersonService.class, OpenApiResource.class, AcceptHeaderOpenApiResource.class)
				.collect(Collectors.toSet());
	}

}
@Path("/")
@OpenAPIDefinition( tags = { @Tag (name = "persons") } ,info = @Info (title = "Person API",version = "1.0.0") ,servers = @Server(url = "/"))
public class PersonService {
	@GET
	@Path("/person")
	@Produces(MediaType.APPLICATION_JSON)
	public Person getPerson() {
		return new Person("1","person");
	}
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public Person getPersonById(@PathParam("petId") String id) {	
		return new Person("2","person2");
	}
}
{
  "openapi" : "3.0.1",
  "info" : {
    "title" : "Person API",
    "version" : "1.0.0"
  },
  "tags" : [ {
    "name" : "persons"
  } ],
  "paths" : {
    "/person" : {
      "get" : {
        "operationId" : "getPerson",
        "responses" : {
          "default" : {
            "description" : "default response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Person"
                }
              }
            }
          }
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "Person" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          }
        }
      }
    }
  }
}
<dependency><groupId>io.swagger.core.v3</groupId><artifactId>swagger-jaxrs2</artifactId><version>2.0.8</version></dependency>

Jenkins TestCompletePlugin failing after update to 2.4

$
0
0

Hi there,

 

We are currently updating our Jenkins Server and installed the latest TestCompletePlugin with Version 2.4

Sadly the Testruns keep failing now.

 

Our Jenkinsfile looks like this and was not changed

stage("Test Job") {
					checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'mylovelycreds', url: 'https://github.mylovelycompany.com/mylovelyproduct/testcomplete.git']]])
					sleep time: 10, unit: 'SECONDS'
					testcompletetest actionOnErrors: 'MAKE_FAILED', actionOnWarnings: 'MAKE_UNSTABLE', executorType: 'TE', generateMHT: true, launchType: 'lcProject', project: 'mylovelyproduct Server', suite: 'mylovelyproduct.pjs', useTCService: true, userName: 'mylovelyfakeusername', userPassword: 'mylovelyfakepassword', timeout: '10800', useTimeout: true
				}

 

In the Logs we noticed that the Parameters used for execution have changed.
TestCompletePlugin 2.2

[TestComplete] The test execution started (MyLovelyProduct/MyLovelyProduct Server).
[TestComplete] Found TestComplete/TestExecute installations:
	Type: TE, Version: 14.30.3743.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
	Type: TE, Version: 14.30.3743.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] Launching the test runner.$ '"C:\Program Files (x86)\SmartBear\TestExecute 14\bin\TestCompleteService14.exe"' //LogonAndExecute //lDomain: "" //lName: "MyLovelyProduct" //lPassword: ******** //lTimeout: "10980000" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" "c:\ProgramData\Jenkins\workspace\Sandbox\TestComplete Scripted Pipeline\MyLovelyProduct.pjs" /run /SilentMode /ForceConversion /ns /exit "/ExportLog:c:\ProgramData\Jenkins\workspace\Sandbox\TestComplete Scripted Pipeline\1580133532072.tclogx" "/ExportLog:c:\ProgramData\Jenkins\workspace\Sandbox\TestComplete Scripted Pipeline\1580133532072.htmlx" "/ErrorLog:c:\ProgramData\Jenkins\workspace\Sandbox\TestComplete Scripted Pipeline\1580133532072.txt" "/ExportLog:c:\ProgramData\Jenkins\workspace\Sandbox\TestComplete Scripted Pipeline\1580133532072.mht" /Timeout:10800 "/project:MyLovelyProduct Server" /DoNotShowLog /JenkinsTCPluginVersion:2.2"'
[TestComplete] Test runner exit code: 2.
[TestComplete] [WARNING] Error: The property checkpoint failed, because Text does not contain the substring (case-sensitive) "not important". See Details for additional information..
[TestComplete] [WARNING] Errors occurred during the test execution.
[TestComplete] Marking the build as FAILED.
[TestComplete] The test execution finished (MyLovelyProduct/MyLovelyProduct Server).

TestCompletePlugin 2.4

[TestComplete] The test execution started (MyLovelyProduct/MyLovelyProduct Stargate).
[TestComplete] Found TestComplete/TestExecute installations:
	Type: TE, Version: 14.30.3743.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
	Type: TE, Version: 14.30.3743.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] [WARNING] The node is connected via Java Web Start (JNLP). In this mode, the "Run interactive user session" property of the TestComplete Test step is ignored. TestComplete (or TestExecute) will work in the current user session.
[TestComplete] Launching the test runner.$ "null\SessionCreator.exe" ExecuteProcess '/c:""C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"" ""c:\ProgramData\Jenkins\workspace\MyLovelyProduct QA\Yoda TestComplete\MyLovelyProduct.pjs"" /run /SilentMode /ForceConversion /ns /exit ""/ExportLog:c:\ProgramData\Jenkins\workspace\MyLovelyProduct QA\Yoda TestComplete\1580394292201.tclogx"" ""/ExportLog:c:\ProgramData\Jenkins\workspace\MyLovelyProduct QA\Yoda TestComplete\1580394292201.htmlx"" ""/ErrorLog:c:\ProgramData\Jenkins\workspace\MyLovelyProduct QA\Yoda TestComplete\1580394292201.txt"" ""/ExportLog:c:\ProgramData\Jenkins\workspace\MyLovelyProduct QA\Yoda TestComplete\1580394292201.mht"" /Timeout:1800 ""/project:MyLovelyProduct Stargate"" /DoNotShowLog /JenkinsTCPluginVersion:2.4'
[TestComplete] [ERROR] An exception occurred:java.io.IOException: CreateProcess error=2, The system cannot find the file specified.
[TestComplete] Marking the build as FAILED.
[TestComplete] [WARNING] Unable to publish test results (xml data is empty).
[TestComplete] The test execution finished (MyLovelyProduct/MyLovelyProduct Stargate).

Fun thing is, in TCPlugin 2.4 the Log shows a warning that we use Java Web Start, however we disconntinued using it since the new Jenkins Server does not support Javaws with OpenJDK11.

You can even see, that the execution Line looks quite different now and it is using some "SessionCreate.exe"

 

Does someone have an idea how to get the system running again?

 

Cheers,

Constantin

Viewing all 26529 articles
Browse latest View live