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

Querry parameter to pass in response

$
0
0

http://localhost:8003/getspell?check=ram 

i want to pass what ever value coming in check as my default repsonse

 

i tried ${#MockService#check}


How to parameterize image for click action

$
0
0

Hello ,

 

I have bunch of image for a mobile applciation , and i need to perfrom click action on every image. I want to pass a fresh image with image name on click method and the method should be loop till the image found with the image name on Imageprository . can some one help me on fixing this issues, i am using VB script 

This is code i am using :

ImageRepository.BING_Set.Password.Touch

i want to pass differnet images in the place of password image with the image name,could someone help me on fixing this ?

Testing with pdf files (AI driven testing)

how to write api response into xlsx file readyapi

$
0
0

Hi,

 

I want to save/write response received from an Rest API as .xlsx.

Content-type  application/vnd.ms-excel

content disposition - attachment;filename=export.xlsx

 

Can someone help to read the response and convert into proper xlsx file.

 

regards,

Manali

 

An error occurred [Your InputStream was neither an OLE2 stream, nor an OOXML stream]

$
0
0

Hi,

 

Steps - 

1. Read response of API and write into XLSX file  - API response content type is ms-excel content disposition as app/filename

2.Read XLSX and coompare with expected xlsx file

 

While reading the XLSX which I cretaed in step 1 it is giving me error as below- 

 

ERROR:An error occurred [Your InputStream was neither an OLE2 stream, nor an OOXML stream], see error log for details

 

can someone help?

 

regards,

Manali

how to datasink values from a dynamic response

$
0
0

Each time i send a request to a SOAP service the repsonse provided is dynamic and the location of a particular field i'm interested in data sinking may change. 

 

Within the below XML response, i want to capture the value from the tech_value_string but only when the Tech_TechCode is 67. Can anyone help with the best approach to datasinking this value please?

 

<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<TechnicalData xmlns="">
<Tech diffgr:id="Tech1" msdata:rowOrder="0">
<Tech_TechCode>110</Tech_TechCode>
<DT_LongDescription>CO</DT_LongDescription>
<Dc_Description>Emissions - ICE</Dc_Description>
<tech_value_string>Not Available</tech_value_string>
</Tech>
<Tech diffgr:id="Tech2" msdata:rowOrder="1">
<Tech_TechCode>67</Tech_TechCode>
<DT_LongDescription>CO2</DT_LongDescription>
<Dc_Description>Emissions - ICE</Dc_Description>
<tech_value_string>165</tech_value_string>
</Tech>
<Tech diffgr:id="Tech3" msdata:rowOrder="2">
<Tech_TechCode>133</Tech_TechCode>
<DT_LongDescription>HC</DT_LongDescription>
<Dc_Description>Emissions - ICE</Dc_Description>
<tech_value_string>Not Available</tech_value_string>
</Tech>
<Tech diffgr:id="Tech4" msdata:rowOrder="3">
<Tech_TechCode>113</Tech_TechCode>
<DT_LongDescription>HC+NOx</DT_LongDescription>
<Dc_Description>Emissions - ICE</Dc_Description>
<tech_value_string>Not Available</tech_value_string>
</Tech>
<Tech diffgr:id="Tech5" msdata:rowOrder="4">
<Tech_TechCode>109</Tech_TechCode>
<DT_LongDescription>Noise Level dB(A)</DT_LongDescription>
<Dc_Description>Emissions - ICE</Dc_Description>
<tech_value_string>Not Available</tech_value_string>

 

 

Test Complete and Test Execute do not match

$
0
0

Hello

 

Can anyone help me out with why Test Complete and Test Execute are not acting in the same fashion?  I have been having this issue since I upgrated to version 15.  For example, here is a preview button in our program.  When I use the Object spy to view this button Test Complete pulls this as the process name: Sys.Process("PNReportGenerator").VCLObject("ReportForm").VCLObject("PanelLeft").VCLObject("Panel1").VCLObject("btnPreview")

 

Test Execute pulls this Smiley Frustratedys.Process("PNReportGenerator").Window("TReportForm", "Report Generator [Ver. 15.00.1311] - ProfitNet Test Center (Z0065) [PROTO]", 1).Window("TPanel", "", 4).Window("TPanel", "", 3).Window("TPRGBitBtn", "Pre&view", 2).

 

I have written all tests using the former btnPreview naming and now using test execute this no longer works.  Similarly, there are objects I can select in Test complete (such as items in a list) that I can no longer select in Test Execute.  It would select the entire list box instead of the actual items in that list.  Any suggestions for how I can get Test execute to go back to how it was working before ie like Test Complete is working?

vSpere console Keys() issue

$
0
0

We're just starting to work with TestComplete 14.0.317.7 and we're having issues using it to automate actions via a vSphere console session. There is no problem opening a local application (ex. Notepad) and using the Keys() method to enter text. But when we launch vSphere console, make it fullscreen, and try to use the Keys() method to enter the username and password it duplicates each keystroke 14 times!

 

ex.

MKSEmbedded.Keys("admin")

 

It then enters into the username window of the Windows VM in vsphere console as aaaaaaaaaaaaaaddddddddddddddmmmmmmmmmmmmmmiiiiiiiiiiiiiinnnnnnnnnnnnnn.

 

We already removed the delay between events to 0 and the keystroke delay to 0. And this only happens in the console window. I should add that we follow this by hitting tab to get to the password entry box and it also simulates 14 [tab] key presses.

 

We can't install and run TestComplete on the remote VM and are fully aware that we'll need to use image-based (image recognition) automation for scripting the vSphere console and RDP portions of our tests.


Error Message: dllhost.exe process crashed.

$
0
0

Hello,

 

What does the error "dllhost.exe process crashed" mean? The exception code is: 0xC000041D

 

This error will occur during playback while a script is executing this conditional statement:

 

if(rit113.dlgConfirmSaveAs.Exists)
{
rit113.dlgConfirmSaveAs.DirectUIHWND.CtrlNotifySink.btnYes.ClickButton();
}

 

Now, the object does exist and the script correctly clicks the yes button. This execption does not hinder playback from completing the test.

 

From UFT to TestComplete

$
0
0

Hello,

   Our shop is currently evaluating TestComplete. Ive used UFT for several years. Can someone give me an example what TestComplete's approach to what is defined as 'descriptive programming' in UFT looks like? For example, how would the following line look in TestComplete scriptive - we will be using VBScript.


Browser("title:=TitleName.*").Page("title:=.*").Link("html tag:=A","text:=Log Off","html id:=ctl00_logOffButton").CLick

 

Thanks

JAX-RS Codegen Just Changed?

$
0
0

Hello! My latest codegen created Java code that no longer uses Servlet Context init parameters to specify service implementation classnames.  Did something just change, or did I break something in my project?

How to add one month to a given date for Assertion

$
0
0

I want to assert a date from a response in JSON. 

Expected Value is ApplicationDate + One Month

Application date is like '2019-03-04'. So the Expected Date should be '2019-04-04' 

I know there are so many ways to do this by adding one month to the current system date. But how to add one month to a given date? Thanks 

Reusable REST Request approach

$
0
0

can any one help the approach how to handle better ways for Re-usable REST Request (Test Steps) in multiple test cases

 

I have a scenarios where i need to Re-Use REST Requests in Multiples of test cases as Test Steps

 

What is the Best approach for this solution on ReadyAPI,

 

I am using Ready API 2.6v

Iterate over child tests

$
0
0

I've set up a sequence of tests via View -> Organize Tests.

I then added child tests to one test unit.

I would like the parent test unit act as a loop controller over its containing child tests.

Is this possible?

 

Failing that, is there some way a script can retrieve the sequence of the child tests?

 

Thanks in advance,

 

Steven.

[Day 2/5] APIvsUI - Define what API testing / UI testing Is

$
0
0

Hi Team,

 

What a great start of the event! I’m so excited to see all the participants.

At the moment, the API and UI Teams have the same number of points! Let’s see if the situation changes today.

>> Track the current score

 

Day 2 Task:

Define what API testing / UI testing is.

 

Here are just several things that you can cover in your answer:

Why is it important to test?

What are the major elements of the testing process?

Is automation a “must-have” nowadays?

 

 

Also, don’t forget about bonus tasks to earn more points!

 

We are looking forward to reading your comments here Smiley Happy

 

Bonus Tasks

Accomplish any of the bonus tasks to earn more points:

  1. +2 points - Invite your colleague to the competition.

Mention a nickname of this person by using @ in the competition’s daily topics. You can invite as many people as you wish. NOTE: A person you invite should be a new Community member registered after the event start.

 

  1. +2 points – Make a post on social media about your participation in the competition.

Your post should contain: @SmartBear, the #APIvsUITesting hashtag and the link to your comment in the Community.

Simple tweet: API Testing vs UI testing! Which one is more important? Join me in the @SmartBear Community to talk about this: https://bit.ly/2HEZ5U4 #APIvsUITesting

 

Event Rules

  1. Leave your comments on a conversation of the day. 1 comment = 1 point to the team score.
  2. The competition will be held on March 25-29.
  3. Join the competition any day and participate in any daily conversations.
  4. Feel free to leave comments for any teams.
  5. Rewards! A team with the biggest score will win. Active participants from each team will be rewarded.

 

Participate in all conversations – find them using the #APIvsUI tag.


[Day 2/5] APIvsUI - Define what API testing / UI testing Is

$
0
0

Hi Team,

 

What a great start of the event! I’m so excited to see all the participants.

At the moment, the API and UI Teams have the same number of points! Let’s see if the situation changes today.

>> Track the current score

 

Day 2 Task:

Define what API testing / UI testing is.

 

Here are just several things that you can cover in your answer:

Why is it important to test?

What are the major elements of the testing process?

Is automation a “must-have” nowadays?

 

 

Also, don’t forget about bonus tasks to earn more points!

 

We are looking forward to reading your comments here.

 

Bonus Tasks

Accomplish any of the bonus tasks to earn more points:

  1. +2 points - Invite your colleague to the competition.

Mention a nickname of this person by using @ in the competition’s daily topics. You can invite as many people as you wish. NOTE: A person you invite should be a new Community member registered after the event start.

 

  1. +2 points – Make a post on social media about your participation in the competition.

Your post should contain: @SmartBear, the #APIvsUITesting hashtag and the link to your comment in the Community.

Simple tweet: API Testing vs UI testing! Which one is more important? Join me in the @SmartBear Community to talk about this: https://bit.ly/2HEZ5U4 #APIvsUITesting

 

Event Rules

  1. Leave your comments on a conversation of the day. 1 comment = 1 point to the team score.
  2. The competition will be held on March 25-29.
  3. Join the competition any day and participate in any daily conversations.
  4. Feel free to leave comments for any teams.
  5. Rewards! A team with the biggest score will win. Active participants from each team will be rewarded.

 

Participate in all conversations – find them using the #APIvsUI tag.

Querry parameter to pass in response

$
0
0

http://localhost:8003/getspell?check=ram 

i want to pass what ever value coming in check as my default repsonse

 

i tried ${#MockService#check}

Empty File Should Not Save to Azure Blob via SoapUI

$
0
0

Hi Team,

 

When i try to hit POST request via Swagger by browsing Empty Text file then i get Status Code as 400 and not storing the empty file to Blob but when it try to write at test case in SoapUI in which I have attached 0 bytes text file in attachment tab and selected media type as multipart/form-data and checked Post QueryString then when i click on Send then it is saving empty file to Blob which it should not. It is because the Raw request content length is 230 though nothing there in attached file. So, I need your help to how to Empty file should not be saved to Blob when i click on Send. I have searched alot but no luck. Need your quick help on it.

 

Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_12_943510348.1553578526351"
MIME-Version: 1.0
Content-Length: 230
Host: localhost:5000
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_181)

 

Thanks,
Srikar

duplicate-ignore

Swagger-Editor: Conditional definition of attribute

$
0
0

Hi,

I am trying to figure out how to model following scenario in Swagger-Editor:

 

I have 2 objects of type 'XDocument' and 'YDocument'.

Both have an attribute customer of type: 'Customer'.

'Customer' has attribute refNr of type: Integer.

In case of 'XDocument' customer.refNr is a constant -> customer.refNr = 1

In case of 'YDocument' customer.refNr can be one of the numbers from {1,2,3}.

 

In my yml-File, I would like to model Customer and respectively its argument refNr according to given scenario.

Is that possible and if yes, how can I do that?

 

Thanks in advance!

Viewing all 20755 articles
Browse latest View live