I am working on automation a wpf app using testcomplete. My issue is i am recording the tests in a pc which has a resoltuion of 1366*768. I need the tests recorded in 1366*768 resolution to run in a higher resolution screen like 1920*1080. Can you suggest ways to do it, it it is possible.
Automation of wpf app - Managing multiple screen resolutions
Unable to create a project item of the 'Keyword Test' type,because the specified file does not exist
I am facing this issue on running tests from Jenkins.
Note: Tests are running fine before i reverted few changes from SVN commit.
Please help in fixing this.
Import OpenAPI spec with multiple files
I'm trying to import OpenAPI spec in SoapUI Pro 2.5.0 (File > New Functional Test > API Definition). The spec consits of several files (see attachments). Import is finished without errors, but the project is empty. The same spec combined into a single file is imported OK with prepared test cases.
Does SoapUI Pro supports multi-file OpenAPI spec?
Object spy unable to identify popup window in Chrome
Hi there,
I am doing automation test for website appliction. Object spy is unable to identify the popup window in Chrome browser.
Howevery my collegue is able to identify same popup with Chrome in her machine. It can't help after I reset browser's setting.
Please advise,
Thanks,
Michael
Comparing an array from Json Response to an array from JDBC response.
Hello,
I have a situation where I'd like to compare a resultset of 100 rows from both a REST call and a database query using XPath Match on the JDBC response.
My issue is however that while they seemingly do hold the same values, the assertion fails anyway with the following error. I have compared every value in these two arrays and they are the same. However one seems to contain an extra space? I have checked both the Database and Rest response and neither contain this extra space.
- The XPathContains assertion failed for the following path: [//Results[1]/ResultSet[1]/Row[*]/LITEMID[1]/text()]. Expected value: [[1427, 1392, 1393, 1394, 1415, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2148, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157, 2158, 2159, 2161, 2162, 2163, 2164, 2165, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2175, 2176, 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187, 2188, 2189, 2191, 2192, 2193, 2194, 2195, 2196, 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2221, 2223, 2224, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2237, 2238, 2239, 2240]]; Actual value: [[1427,1392,1393,1394,1415,2138,2139,2140,2141,2142,2143,2144,2145,2146,2147,2148,2149,2150,2151,2152,2153,2154,2155,2156,2157,2158,2159,2161,2162,2163,2164,2165,2166,2167,2168,2169,2170,2171,2172,2173,2175,2176,2177,2178,2179,2180,2181,2182,2183,2184,2185,2186,2187,2188,2189,2191,2192,2193,2194,2195,2196,2198,2199,2200,2201,2202,2203,2204,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2221,2223,2224,2225,2226,2227,2228,2229,2230,2231,2232,2233,2234,2235,2237,2238,2239,2240]].
JDBC XPath expression :
//Results[1]/ResultSet[1]/Row[*]/LITEMID[1]/text()
EXPECTED RESULT:
${Get SubscriptionGroups#Response#$['SubscriptionGroups'][*]['SubscriptionGroupID']}
JDBC SNIPPET
Results><ResultSet fetchSize="128"><Row rowNumber="1"><LITEMID>1427</LITEMID><SZUSER>email@redacted.com</SZUSER><SZNAME>Filtersubscription</SZNAME><SZRESPONSIBLE>FilterLastName</SZRESPONSIBLE><SZFIRSTNAME>FilterFirstName</SZFIRSTNAME><SZCUSTOMERNR>FilterID</SZCUSTOMERNR><SZVATNUMBER>FilterVAT</SZVATNUMBER></Row><Row rowNumber="2"><LITEMID>1392</LITEMID><SZUSER>email@redacted.com/SZUSER><SZNAME>Has 0 subscriptions</SZNAME><SZRESPONSIBLE>AllValidLastName</SZRESPONSIBLE><SZFIRSTNAME>AllValidFirstName</SZFIRSTNAME><SZCUSTOMERNR>AllValidID</SZCUSTOMERNR><SZVATNUMBER>AllValidVAT</SZVATNUMBER></Row><Row rowNumber="3">
REST SNIPPET
{ "ListInfo" : { "Count" : 100, "TotalCount" : 127, "HasMore" : "Yes", "Links" : { "URL" : "http://arta:8080/api/partners/mainregressionpartner/subscriptiongroups?Sort=%2BLabel", "First" : "http://arta:8080/api/partners/mainregressionpartner/subscriptiongroups?Sort=%2BLabel&offset=0&limit=100", "Previous" : null, "Next" : "http://arta:8080/api/partners/mainregressionpartner/subscriptiongroups?Sort=%2BLabel&offset=100&limit=100", "Last" : "http://arta:8080/api/partners/mainregressionpartner/subscriptiongroups?Sort=%2BLabel&offset=100&limit=100" } }, "SubscriptionGroups" : [ { "SubscriptionGroupID" : 1427, "Label" : "Filtersubscription", "LastName" : "FilterLastName", "FirstName" : "FilterFirstName", "ExternalReferenceID" : "FilterID", "VAT" : "FilterVAT", "CreatedOn" : "2018-11-21T14:11:14.763Z", "ModifiedBy" : "email@redacted.com", "LastUpdated" : "2018-11-21T14:11:14.767Z", "NumberOfSubscriptions" : 0, "Links" : { "SubscriptionGroup" : "http://arta:8080/api/partners/mainregressionpartner/SubscriptionGroups/1427" } }, { "SubscriptionGroupID" : 1392, "Label" : "Has 0 subscriptions", "LastName" : "AllValidLastName", "FirstName" : "AllValidFirstName", "ExternalReferenceID" : "AllValidID", "VAT" : "AllValidVAT", "CreatedOn" : "2018-11-21T09:10:53.463Z", "ModifiedBy" : "email@redacted.com", "LastUpdated" : "2018-11-21T09:10:53.463Z", "NumberOfSubscriptions" : 0, "Links" : { "SubscriptionGroup" : "http://arta:8080/api/partners/mainregressionpartner/SubscriptionGroups/1392" } }, { "SubscriptionGroupID" : 1393, "Label" : "Has 1 subscription", "LastName" : "AllValidLastName", "FirstName" : "AllValidFirstName", "ExternalReferenceID" : "AllValidID", "VAT" : "AllValidVAT", "CreatedOn" : "2018-11-21T09:10:53.73Z", "ModifiedBy" : "email@redacted.com", "LastUpdated" : "2018-11-21T09:10:53.733Z", "NumberOfSubscriptions" : 1, "Links" : { "SubscriptionGroup" : "http://arta:8080/api/partners/mainregressionpartner/SubscriptionGroups/1393" } },
Has anyone come across a similar issue? Or maybe has a different approach for comparing a list of data with database values?
unknown license key
hi,
there is unkown product key/info found on one of my workstation(pls. see attached file), where no TestComplete/TestExecute installed. could somebody tell me what it is?
Thanks,
Lee
Generate a thumbnail
I would like to incorporate a thumbnail from a document/ image in a message.
Is it possible to do it with any library or something like that?
Windows Service and soap response
Hello, I have a strange problem with a web service on windows server.
I had to implement a web service to respond to a client invoking a method on my server, facilitated by a wsdl file that was provided to me. My method returns a properly formatted soap response, but there is only one problem: for some strange reason, the client receives an xml string with a carriage return (EOL) before the xml tag and a carriage return later, and returns a "The processing instruction target matching" [xX] [mM] [lL] "is not allowed." error, due precisely to those carriage returns.
If I try to call up my service with SoapUi, in fact, in the response window, appears an empty line immediately before `<? xml version = "1.0"` and immediately after `</ SOAP-ENV: Envelope>`.
The validation of SoapUI gives me the error "xml declaration is not well-formed" and the WS-I Profile Conformance Report gives the same error reported by the client above.
If I delete the returns, the validation returns me positive result!
The strange thing is that, by debugging my php code, if I intercept the response after $server->handle(), it appears with no returns !!!! However, this comes to the client with the returns inserted!
Can the web server have something to do with it? I have IIS 7.5.
I'm crazy, can anyone help me? Thank you.
Using $ref in open API spec 3.0 in swagger hub - Remote Reference
Hi All,
We are switching to open api spec 3.0 from 2.0 and the only real difficulty we are getting is to use $ref in 3.0 version. In version 2.0, it was so straightforward that we could define a different model definition file and defined all the model definition there. and could reference between those model definition files as well.
Now with 3.0, we had to define components within APIs and now, if one API wants to use a component from another API, we are not able to do that.
We could see the following snippet in the documentation but don't see a live example. Could someone please help us with a live example. Thanks
Remote Reference – $ref: 'document.json'
Uses the whole document located on the same server and in the same location.
- The element of the document located on the same server –
$ref: 'document.json#/myElement'
- The element of the document located in the parent folder –
$ref: '../document.json#/myElement'
- The element of the document located in another folder –
$ref: '../another-folder/document.json#/myElement'
The window size is (401, 0);
I have a drop down but it does'nt filter the items filled in when writting text in. like i have a dropdown with YES and NO if i type yes it will only show me YES and so i press tab and it select YES, but here i my case the dropdown is not being filtered it keeps showing all the values and so i cannot select my desired item.
then i have a grid, when i select a record it gives its detail in another grid with edit template.
so what it does normaly is selects the item by x and y axis the grid is popluated but when it clicks the grid it shows the ambigous error.
it would be great if you help me out here !
Note that using the Key function wont help because it the dropdown is not being filtered by the text i write.
what correction i need to do in my script so that my output will be independent of Default response
I create one project in which if i am writing CountryISOCode , i will get back in return Capital of that country. I made this below script but its not working , because my output of request is dependent on default Response 1 and Response 2. If I choose Response 1 i got back only result of 1 country capital with respect of CountryISOCode . I want help what changes i can do in my below script so it will be independent of my default Response 1 and Response 2 .
def temp="XX";
def groovyUtils=new com.eviware.soapui.support.GroovyUtils(context)
def xml=new XmlSlurper().parseText(mockRequest.requestContent)
xml.breadthFirst().each{
def v=it.toString()
log.info("==============="+it.name()+"==================="+it.text());
if(it.name()=="name"){
temp=it.text();
log.info("===================matching tag=========================="+it.text());
}
}
//log.info("*temp**"+temp);
if(temp=='IN'){
log.info("if Response 1");
mockOperation.setDefaultResponse("Response 1");
}else if(temp=='UA'){
log.info("else if Response 1");
mockOperation.setDefaultResponse("Response 2");
}
Getting Started in CrossBrowserTesting
Greetings!
Welcome to the CrossBrowserTesting Community! We will be happy to help you get started with CrossBrowserTesting and grow your expertise in the product.
MOSTLY ASKED QUESTIONS
To help you start working with CBT, we've prepared a list of great topics that answer new users’ most frequently asked questions:
- How To Test Behind Your Firewall
- Record & Replay Best Practices
- How do I troubleshoot issues with my Local Connection?
LEARN WITH THE COMMUNITY
All current Community members noted that one of the best options to learn the product is to consult with the Community members. So, feel free to submit your own questions. Community Leaders are looking forward to helping you!
Not ready to post your first question? Watch the exclusive videos with Community Leaders, where they give great tips for new users. And, don’t forget to give them your Kudos!
Here are our rules, because there are should always be some rules - please make sure that you don't break them. Also, I encourage you to review the Community Guide to get the most out of your time in the SmartBear Community.
SUPPORT TEAM
All community questions are managed only by CrossBrowserTesting Community members who are not SmartBear employees. If you want to get help from the SmartBear Support Team, please submit your ticket here.
TRY CBT FREE
If you haven't tried CrossBrowserTesting yet, request a trial today.
ReadyAPI missng integrations files
Where do I find and install the Available Integrations for ReadyAPI if they were not included on install? I looked through the documentation once before and I found what i needed but I cannot find it again.
Suggestions?
How to test DIME Attachment using ReadyAPI ?
Old web services using DIME binary attachment standard. I have a link to old MSDN documentation:
DIME: Sending Binary Data with Your SOAP Messages
Last time I checked SoapUI documentation, I could not find support for testing with this attachment type.
Now that we are using ReadyAPI, does anyone know if/how we can test using DIME binary attachment type?
Thanks,
Eric
OpenApi v. 3.0.1 specification is recognised as OpenApi v.2 specification
I am uploading a REST API specification to Swaggerhub through the Rest API of SwaggerHub. Although the specification is writter in accoring to OpenApi v.3.0.1, Swaggerhub opens it with the version 2 editor. When I open the file I get the message "Update Editor to OpenAPI 3.0?" How can I specify the Open API version of a file that I am sending through the REST APi of Swaggerhub, so that when I open the specification in SwaggerHub it opens with the correct editor?
Following the OpenApi Spec:
openapi: 3.0.1
info:
title: aut-reg-inf-autreg-58-openapi-lambdab-final
version: "1.0"
servers:
- url: 'https://serverUrl.com'
paths:
/buildbranch:
post:
operationId: insertEntry
responses:
default:
description: A textual response
content:
application/json:
schema:
type: object
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MODELde9675'
example:
repository: authority-registry
branch: master
owner: BIBSYSDEV
action: create
required: true
/githubhook:
post:
operationId: githubhook
responses:
default:
description: A textual response
content:
text/plain:
schema:
type: string
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: api-key
schemas:
MODELde9675:
type: object
properties:
owner:
type: string
description: The owner
action:
type: string
description: create or update
repository:
type: string
description: The name of the repository
branch:
type: string
description: The name of the branch
security:
- ApiKeyAuth: []
Depending on parameter how to change response in swagger
Hi,
I want to change the response value depending on the paramter.
for example:-
I want to send response as Cat when 1 parameter and Dog when 2 parameter is passed.
Thanks,
Shirin Parkar
Unable to connect Team Foundation Server From TestComplete
Hi Team,
Unable to connect to Team FOundation Server from TestComplete within my solution.
Add to Team Foundation Server is disabled.
Kindly help to resolve this issue ASAP.
Steps to re-produce:
1. File->Source Control
-- Add to Team foundation server and Get latest version is disabled
Kindly find the attached screen shot for reference.
Comparing JSON variable to an Array of objects in JScript
I would like to compare JSON values to an array of values but I d'ont know what's the best scenario to go with.
I got a JSON object with expected values (could have 1 value , 2 or more) I have a DB function that returns a fix number of values, say 10 values all the time and I would like to know if my JSON values matches the right one coming from DB. Ex:
My JSON var is :
var expValues ={"id":"123","age":23};
My DB will push some values to an Array of objects.
Ex:
if((rs.BOF)&&(rs.EOF)){//nothing found;}else{while(!rs.EOF){
aDetails.push({"id": rs.fields("id").Value,"name": rs.fields("name").Value,"age": rs.fields("age").Value,"sex": rs.fields("sex").Value,"hobby": rs.fields("hobby").Value});
rs.MoveNext();}}
rs.close;//Close connection then returnreturn aDetails;
This is doable easy using JavaScript but how could I do it with Jscript in testComplete ?
let aDetails =[{"id":"123","name":"as","age":23,"sex":"m","hobby":"abc"},{"id":"1234","name":"as1","age":23,"sex":"m","hobby":"abc"},{"id":"12","name":"as2","age":23,"sex":"m","hobby":"abc"}]var expValues ={"id":"123","age":23};function isObjectMatched(obj){return aDetails.some(d =>Object.entries(obj).every(([k, v])=> d[k]== v))}
console.log(isObjectMatched(expValues))
ApiModelProperty definition and generation of static html documentation
I use 2 different ways to generate static html from a swagger/yaml 2.0 model:
1. swagger to static HTML, using org.swagger2html.Swagger2Html
a. works fine (generates static HTML file) with no ApiModelProperty definition
b. throws OOM error when add ApiModelProperty definition and try to generate static HTML
2. Using Codegen 1.4.0-SNAPSHOT base code
a. for html option does NOT generate ApiModelProperty definition in static HTML
b. for html2 option does NOTgenerate ApiModelProperty definition in static HTML
Any ideas?
Facing issue while generating signature using wss4j 2.1 api
1. Binarysecurity
2.signature
A. Digestmethod
B. Canonicalized
C. References
D. Keyinfo
I have to use id and to create signature for id from this element <wsa:To wsu:id="133" ><|wsa:To> ..attached java file.please share any working example to maheshreddy445@gmail.com.
Facing below issue for my attached code
sign.addReferencesToSign(signParts,secHeader) is throwing Error::signSoapMessage - No message with ID "noXMLSig" found