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

How to verify word wrapping in a panel which consists of blocks containing text?

$
0
0

Hello Everyone,

 

I have an object which has the ObjectType as Panel. It consists a number of card-blocks with text and the ObjectType is Panel for each of them. I need to verify if the card-blocks containing text are getting wordwrapped.

 

For this, I first detected the card-blocks containing the text and made use of the WordWrap method. But it is throwing me an error.  

 

Could someone please let me know where am I going wrong and suggest how to resolve this issue?


TestComplete integreation - ReadyAPI vs WesServices project Items

$
0
0

Hello,

 

We currently have a TestComplete, ReadyAPI and QAComplete.  What I would like to know is there a different or a reason to use the Project Items (ReadyAPI or WebServices) within TestComplete?

 

Which is better and are there pros/cons?

 

 

 

 

How to assert array response

$
0
0

[
{
"id" : "1234",
"name":"xyz"
},
"jsonfield1" : {
"jsonfield" : "xyz"
}
}
]

 

I got this response of my API. I dont know how to assert array.

Generally, I store in hashmap

 

def response_string = messageExchange.response.responseContent

def response_slurper = new JsonSlurper()
def response_hashmap = response_slurper.parseText(response_string)

assert response_hashmap.id =="123"

Its failing here since its an array. 

 

Looking for a snippet.

Cannot get VCLObject on slave machine

$
0
0

I have my automated testing envioronment configured as below:

 

Master: Windows 7 Enterprise, TestComplete 11.31.2420.7(floating) and TestExecute 11.31.2420.11. Has access to license server and the automated test LAN.

Slave: Windows 7 Ultimate, TestExecute 11.31.2420.11. Has access to only automated test LAN.

 

My to be tested software is developed with Delphi 2007. I have two ".exe" to test, A.exe(Aliases.A) and B.exe(Aliases.B), in the same project. I use python scripts.

On my master machine, everything works fine for both instances of Aliases.A and B(using TestComplete or TestExecute). I can properly detect the objects with either namemapping or with .VCLObject() method.

 

Now my problem is, I set up a Network Suite and send a command to let my Slave to run a task, everything still works fine with Aliases.A. But not for Aliases.B. not with namemapping or VCLObject() method.  The process seems to only have generic windows properties. 

 

The project is copied to slave with network suite so I suppose all settings including TestedApps and Namemapping are same.

 

I cannot install TestComplete on my slave to try object spy since my slave has to be in a LAN without access to Testcomplete license server.

 

As an exmaple:

I have below two functions return the same object. both works on master machine but find_form_vcl() doesn't work on slave machine( tried initiated with network suite or run testexecute locally with command line), it returns object not found. As if TestExecute doesn't recognize it as a Delphi compiled.

def find_form_Wnd():
    b = Aliases.B
    props = ["WndCaption"]
    values = ["xxxForm"]
    form = b.FindChild(props, values, 5)
    return form


def find_form_vcl():
    b = Aliases.B
    form = b.VCLObject("xxxForm")
    return form

 

I already made sure all instances are run with the same Windows user.

an internal error has occurred while running the google chrome browser in test complete

$
0
0

 Browsers.Item(bws).Run(url)  

after execution of this getting error

"an internal error has occurred while running the google chrome browser in test complete"

what is the reason behind it and how can i solve it

fyi..i prepared my browsers according to smartbear document

 

Setting a default directory for responses

$
0
0

 Is there a way that I can set a default directory for my responses

Connection timed out: connect in SoapUIMultiThreadedHttpConnectionManager

$
0
0

Hi,

when trying to execute a soapui test through SoapUITestCaseRunner in eclipse, iam getting this error. The same is executing fine through soap ui application. Please let me know the solution.

Please find the detailed log.

 

2018-10-24 17:46:10,151 ERROR [WsdlSubmit] Exception in request: org.apache.http.conn.HttpHostConnectException: Connect to 10.226.11.124:6500 failed: Connection timed out: connect
2018-10-24 17:46:10,153 ERROR [SoapUI] An error occurred [Connect to 10.226.11.124:6500 failed: Connection timed out: connect], see error log for details
2018-10-24 17:46:10,155 ERROR [errorlog] org.apache.http.conn.HttpHostConnectException: Connect to 10.226.11.124:6500 failed: Connection timed out: connect
org.apache.http.conn.HttpHostConnectException: Connect to 10.226.11.124:6500 failed: Connection timed out: connect
 at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:279)

Cannot change Visible in OnShow or OnHide - V.12.60.5545 x64

$
0
0

When I attempt to open an existing project suite, I receive error "Cannot change Visible in OnShow or OnHide." I am using Test Complete V.12.60.5545 x64. 


Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls

Create default REST request with default body based on body model

$
0
0

Hi,

 

I found this two year old new feature request:

https://community.smartbear.com/t5/ReadyAPI-Feature-Requests/Swagger-use-body-model-when-importing/idi-p/126411

 

It contains a functionality we've been looking for.

 

We are now in a project we're we using REST based on OpenAPI 3.0 definitions and we're wondering if there has been some progress in the area described in the original new feature request post?

It would be most appreciated if ReadyAPI would be equipped with this functionality.

Best regards

Mathias

make screenshot on every step

$
0
0

hello,

is it somehow possible to make a screenshots on every keywordtest in line without manually creating post to log action?

How i tranfer a cookie from a response (raw) in a next step and send it there

$
0
0

Hello,

I am beginning to work with SoapUI and so my level is not high and so a have a question..

I have a Rest-Service and i must login on a website and get in the response a cookie.

For the next steps i must use and send this cookie on a other website to be able to test on this site the api.

So, now my question. How can i transfer this cookie in the next step and send it?


Thanks.

 

Best Regards

Uwe

Capture a background color and font color of the line in DBGrid

$
0
0

I have a functionality in the DBGrid when selecting a row and press a key this changes the background color and font color of the row has ben selected. The validation i need to apply is if pressing the key actually occurs this color change. I have done some tests with the property ".Canvas.Font.Color", however it is not changing this property at runtime, it always returns the same color. However in debug the execution some times it changes, has anyone done any such validation or have any ideia how i do that?

Reading PDF documents where text can't be stripped

$
0
0

I've attached a document that I'm trying to parse using PDFBox.  I'm not having any problems with the PDF Box set up.  Text stripping works fine and I can dump pages to images if I need to (For those curious, this is the article that I'm working from https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete).

 

My problem is this: Only the header and footer information on each page actually strips out as text.  When I scan the page using getResources(), the only objects that come back are PDXFormObjects, not images.  

Now, I can go the route of doing image comparisons and such... but I'd rather not... image comparisons are so bulky and prone to problems with pixel depth, tolerance, etc.  So, what I need is some way to get to the contents of the PDF that I cannot access otherwise.

Any help from someone who has done this sort of thing before would be greatly appreciated. Smiley Happy

 

See?  Even heroes need help every once in a while. Smiley Wink

How to write data to excel file, write mutiple rows in one groovy script step?


Unable to run url on chrome browser

$
0
0

Test Complete version => 12.50

Chrome version => 67

 

Facing below error

 

URL: https://uat.********.com Process ID: 6944 Process Command Line: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-hang-monitor --disable-translate Info: Cannot find any existing or open blank page. Check whether TestComplete Chrome Extension is installed and enabled. NameMapping.Sys.Process("chrome")

URL: https://uat.********.com
Process ID: 6944
Process Command Line: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"  --disable-hang-monitor --disable-translate
Info: Cannot find any existing or open blank page.

Check whether TestComplete Chrome Extension is installed and enabled.

NameMapping.Sys.Process("chrome")

Loop over testStep in soapUi testSuite

$
0
0

Hi All,

I makingone testSuite where I need to repeat one testStep multiple time. Again repeat count depends on output of previous step where getting response in some JSON string. Need to get the iteration count of of response document and loop-over for 2nd testStep.

Kindly help ifyou can get something.

 

As per below pic I needto do loopover policyList based on the response of Add step


Capture.PNG


Thanks
Baharul Islam

Response Time collection

$
0
0

Hi All,

 

I am making one testSuite with no of testStep. I need to capture response time or execution time for each testStep either in some file or to log somewhere. Actually I need to run loadTest on testSuite , so need to capture all response time throughout the iteration.

 

 

Thanks

Baharul Islam

MockService Response increasing with continuous load

$
0
0

Hi All,

 

We have created a mock service framework using SoapUI. We have written a custom Groovy class where response XML is getting created and the same response XML is being set as a mock response using context expansion in mock service script. We deployed the soapui project as war in tomcat and we are running the load test using these mocks. Mock response times are getting increases when load increased. I am not logging any comments.

 

Is this the expected behavior with SoapUI mock services when running load tests? Can someone please help me in resolving this response time increase issue?

How to close the Infragistics DockManager ContentPane

$
0
0

Hi All,

 

Can anyone suggest how to close Infragistics DockManager ContentPane directly from the test script? Is there any direct method to close the ContentPane?

 

TestComplete not recognizes the close button(X) in the ContentPane.

 

Thanks in advance.

 

Thanks,

Karthik K R

Viewing all 20073 articles
Browse latest View live