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

Apache Kafka consumer in SOAPUI pro

$
0
0

Hi,

 

Can anyone help me in recording and asserting the data from a kafka producer application in SOAPUI Pro?

I tried with groovy script and example code from the apache website but I was not successful yet.

 

Thanky in advance.

 

Regards

Markus

 


Need for Technical Writer in API Documentation

$
0
0
I'm a technical writer, and recently I started learning about documenting APIs. After learning APIs for about 4-5 months, yesterday I got to know that programmers can automatically generate API Documentation by simply inserting a few lines of Swagger code (this includes, swagger .dll, nswag/swashbuckle) in their APIs. Moreover they can add descriptions/comments in their API.

Therefore, I want to know what is the need (scope of work) of a Technical Writer in API Documentation? Are they needed just to edit the descriptions written by programmers? Moreover, the programmers in my company feel that as the API they are developing is for internal use only, they are not very much concerned about the description/grammar.

Please help me in clearing my confusion.

Validate Table content in PDF document

$
0
0

Hello Everyone,

 

I need to validate a specific data under a column of a table in the specified PDF document.

can anyone help me regarding the same.

 

Regards,

Sathish Kumar K

Reading PDF files line By Line

$
0
0

Hi Everyone,

 

I want to get the PDF text Line by line using javascript.

can anyone help me regarding the same.

 

Kind Regards,

Sathish Kumar K

 

Header templating in swagger yml

$
0
0

I have a header param version and an API with GET and POST methods.

 

If the version is 1.0, then it is for GET API and If the version is 1.2, then it is for POST.

 

@RequestMapping(method = RequestMethod.GET, headers = { "version=1" })
@RequestMapping(method = RequestMethod.POST, headers = { "version=2" })

I am unable to find a way to put this in swagger file documentation yml. 

Property Transfer: if node doesn't exist choose value N/A to write in file

$
0
0

Hi,

 

I've a project where I want to compare responses. therefore I'm using the Property Transfer to put the response in a file with DataSink. Now in the PorpertyTransfer I need to add my namespaces before this step can go on. That's not an issue, but there are some companies that have a different node structure compared to others. e.g. for a legal person the node goes like this:

//ns3:cbeEntityReply[1]/ns3:ReplyData[1]/ns3:Entity[1]/ns4:Enterprise[1]/ns4:Type[1]

but for a business company there's no type, thus this node doesn't exist AND the path is a bit different:

//ns3:cbeEntityReply[1]/ns3:ReplyData[1]/ns3:Entity[1]/ns4:BusinessUnit

with other childnodes in it.

My question is: How can I tell the Property Transfer that if it doesn't find the node "ns4:Type" it may replace this with the string "N/A" when it writes to the textfile please?

thanks in advance.

 

 

 

To registre test result from test complete to Qa complete

$
0
0

 

Hi,

 

After executiong testcomplete script, I want to know how can i register test result execution from Testcomplete to Qacomplete.

 

Thanks

 

 

To registre test result from test complete to Qa complete

$
0
0

Hi,

 

After executiong testcomplete script, I want to know how can i register test result execution from Testcomplete to Qacomplete.

 

Thanks

 

 


How to return the rows updated when running Updae statement in test complete VB script

$
0
0

When i execute the below function the update statement runs succesfully but it is not throwing how many rows was affected.

 

Function Sq_QryUdate(field,value )


'Qry1.ConnectionString = "Provider=IBMDA400.DataSource.1;Persist Security Info=False;User ID=XXX;Password=XXX;Data Source=XXX"

Set Qry1 = CreateObject("ADODB.Connection")
Set myCommand = CreateObject("ADODB.Command" )

Qry1.Open = field 'Connection string passed from excel
Set myCommand.ActiveConnection = Qry1
myCommand.CommandText = value' Update statement passed in excel'
myCommand.CommandType = adCmdText
Qry1.Execute value
myCommand.Execute RecordsAffected,adExecuteNoRecords

Log.Message(myCommand.Execute(RecordsAffected,adExecuteNoRecords))

Qry1.Close
End Function

how to compare the PDF files in a folder with previous version as the base in test complete

$
0
0

We have a folder which containg 15 pdfs and we need to verify that with previous version as the base for every relese. how do we achieve this in our automation testing.

Unable to connect to Teradata database from Ready API

$
0
0

I am trying to connect to teradata database from ready api(soap ui pro). I have placed the required tdgssconfig,terajdbc4 jar files in smartbear\readyapi-2.1.0\bin\ext folder.

Here are the Driver and connection strings used in JDBC Request step : 

Driver : com.teradata.jdbc.TeraDriver

Connection String: jdbc:teradata://servername/user=username,password=password

I have not used any port number here. Below is the error message received, java.sql.SQLException:Incorrect URL:jdbc:teradata://server=servername/user=username,password=password

This is from the jdbc request wizard in Ready API.

Can someone please help in solving this issue?

Do we need any service account to connect to Teradata database? or Do we need database name and port?

Or Are the jar files being used are incorrect?

Assert every instance of a json attribute displays a specific pattern

$
0
0

Hey,

 

 gave me some code to assert that a repeating attribute in my json response had a null as follows::

assert context.response, 'Request parameter is correct'
def json = new groovy.json.JsonSlurper().parseText(context.response)assert json.data.DataSourceName.every{null == it}

Here you can see that I was asserting that every single instance of the DataSourceName attribute was always blank in my response

 

I now have to assert that another attribute has a specific pattern - e.g. 3 character alpha code (e.g. GDS) or a 3 digit value starting with two zeros (e.g. 004)

 

I'm guessing I need to use regex for this - but I don't know how to add in the regex for this

 

e.g. if I need to assert that the value for DataSourceName can be any 3 alpha char (e.g. GDS) - I'd use [A-Z]{3} as the regex - but how do I insert it into my script above?  Just replacing the word 'null' with [A-Z]{3} like below doesn't work

 

assert context.response, 'Request parameter is correct'
def json = new groovy.json.JsonSlurper().parseText(context.response)
assert json.data.DataSourceId_Name.every{[A-Z]{3} == it}

Can anyone advise how I represent a regex value in the script above?

 

Many thanks to all!

 

richie

Displaying HTTP Request headers from an incoming request in a REST mock server

$
0
0

I have created a REST Mock Service in soapUI. When the server processes the incoming REST-HTTP requests from my (test) application, I want to be able to view these incoming requests - all the HTTP headers and possible payload.

Is this possible? I don't see an option I can select to achieve this.

Any help would be appreciated.

Unable to stop TestComplete process when click a button that is Disabled

$
0
0

I am currently doing continuous intergration testing using TestComplete, when clicking a button that is disabled, TestComplete doesn't throw any error message and stop the process, it pass the test and go to next process, as a result, test failed on the next process. Should TestComplete automatically stop process and throw error when it click any buttons that is disabled, or is there any solution to add into script (for example, a event) that trigger TestComplete to stop when click a button that is disabled. 

 

I also attach partial of my scripts in here:

Sub CreateStoreInv

Call Call_Transaction("stdfi010mf")
...
...
Call frmInventoryAdj.UltraToolbarsDockArea.ClickItem("Home|&File|&Save")

If StartWinGUI.dlgInventoryAdjustment.btnYes.Exists Then
StartWinGUI.dlgInventoryAdjustment.btnYes.ClickButton
End If

Call WaitExists(StartWinGUI.dlgInventoryAdjustment, 1000)
If StartWinGUI.dlgInventoryAdjustment.btnOK.Exists Then
StartWinGUI.dlgInventoryAdjustment.btnOK.ClickButton
End If

Next

frmInventoryAdj.Close

 

 

 

Keyword operation script extension not adding info to keyword test editor

$
0
0

I am writing a script extension for my team's use. When I use the jkeyword test operation defined by the script extension, I see my user form as expected. But when I click OK, nothing is added to my keyword editor workspace page. I am following this tutorial page

 

https://support.smartbear.com/testcomplete/docs/working-with/extending/script/tutorials/creating-keyword-test-operations/defining-editor-contents-and-behavior.html

 

I think I am seeing that this segment

 

<Columns><Column Name="Item" Value="VSI Standard Startup" /><Column Name="Value" GetValue="StartingSegment_GetValue" /><Column Name="Description" GetValue="StartingSegment_GetDescription" /></Columns>

of the description XML is supposed to identify what goes in the columns. And this code

 

function StartingSegment_GetDescription(Data)
{
	return Data.Description;
}

function StartingSegment_GetValue(Data)
{
  	return Data.QACompleteInfo;
}

Where Data is comnig from the values of my user form

 

function StartingSegment_OnSetup(Data) {

    var frm = UserForms.ssEditForm;
    // Display the Operation Properties dialog and check the results
    if (frm.ShowModal() != mrOk) return false; // No changes were made

    Data.QACompleteInfo = frm.txtNameId.Text;
    Data.PreReqText = frm.txtPreReq.Text;
}

Can anyone advise as to what I am doing wrong? THANKS!


FindAll returns blank in log - help!

$
0
0

Hi All - 

Trying to get back some data when doing the "FindAll" method.  "Find" seems to work fine and prints to the log fine.  Whenever I run FindAll, it does not give me any error - but the log is literally empty.  Can someone point out what I'm doing wrong here?  

 

This works:

function Find() {
Results = NameMapping.Sys.browser.page.nav.Find("contentText", "administrative", 1, 1000);
Log.Message(Results.MappedName);
}

 

This does not work: 

function Find() {
Results = NameMapping.Sys.browser.page.nav.FindAll("contentText", "*", 1, 1000);
Log.Message(Results.MappedName);
}

 

Any ideas? Many thanks

 

 

SoapUI 5.4.0 TLSv1.2

$
0
0

I need to force SoapUI to use TLS 1.2. For some reason, it is continuing to try and negotiate TLS 1 when it attempts to connect to an LDAP server.

 

Is initial handshake: true

Is initial handshake: true
Ignoring unsupported cipher suite: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_ECDH_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_DHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_DHE_DSS_WITH_AES_128_CBC_SHA256
%% No cached client session
*** ClientHello, TLSv1
RandomCookie:  GMT: 1539270212 bytes = { 190, 36, 155, 63, 249, 228, 34, 47, 110, 206, 253, 217, 59, 120, 159, 128, 17, 126, 243, 42, 33, 79, 54, 197, 9, 239, 67, 24 }
Session ID:  {}
Cipher Suites: [TLS_EMPTY_RENEGOTIATION_INFO_SCSV, SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_AES_128_CBC_SHA, SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA, SSL_ECDH_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA]
Compression Methods:  { 0 }
Extension elliptic_curves, curve names: {secp256r1, secp192r1, secp224r1, secp384r1, secp521r1, secp160k1, secp160r1, secp160r2, secp192k1, secp224k1, secp256k1}
Extension ec_point_formats, formats: [uncompressed]
Extension server_name, server_name: [host_name:

 

Thread-19, handling exception: java.net.SocketException: Connection reset
AssemblyLines/XXX.WebServiceListener.0, handling exception: java.net.SocketException: Connection reset
AssemblyLines/XXX.WebServiceListener.0, handling exception: java.net.SocketException: Connection reset

 

Here is my vmoptions file:

-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx1000m
-Dsoapui.properties=soapui.properties
-Dsoapui.https.protocols=SSLv3,TLSv1.2
-Dsoapui.home=C:\Program Files\SmartBear\SoapUI-5.4.0/bin
-Dsoapui.ext.libraries=C:\Program Files\SmartBear\SoapUI-5.4.0/bin/ext
-Dsoapui.ext.listeners=C:\Program Files\SmartBear\SoapUI-5.4.0/bin/listeners
-Dsoapui.ext.actions=C:\Program Files\SmartBear\SoapUI-5.4.0/bin/actions
-Dwsi.dir=C:\Program Files\SmartBear\SoapUI-5.4.0/wsi-test-tools
-Djava.library.path=C:\Program Files\SmartBear\SoapUI-5.4.0/bin
-Djava.util.Arrays.useLegacyMergeSort=true
-splashSmiley FrustratedoapUI-Spashscreen.png

 

I've tried with/without the SSLv3. Makes no difference.

 

I've seen numerous postings on this topic, but they all point to the change I made to the vmoptions file, which does not work for me in SoapUI 5.4.0.

Any advice would be appreciated.

 

 

 

Configurable option for generating body content in Post requests

$
0
0

Hi,

I'm creating a simple REST service. I figured I'd use JAX-RS. I've generated my API and the documentation looks good.

I'm having trouble modifying the generated JAX-RS code (I'm using Jersey/Jetty) to retrieve 'body' parameters properly. If they're sent in a single packet with the request, the stub is invoked OK. If the body comes in another packet, however, Jetty dispatches the call as soon as the headers are complete and my server stub is invoked with a "null" parameter that should've been retrieved from the HTTP body.

Is there any good JAX-RS sample code that actually properly retrieves a 'body' parameter for use? Is there anything special my code needs to do if the passed function parameter is "null"? Am I supposed to be writing code to retrieve it from the body once that actually arrives, and block until then somehow?

Any pointers to complete sample code (that don't just return"Magic!" without looking at the parameters...) would be much appreciated!

Thanks!
-Patrick.

SoapUI 5.4.0 TLSv1.2

$
0
0

I need to force SoapUI to use TLS 1.2. For some reason, it is continuing to try and negotiate TLS 1 when it attempts to connect to an LDAP server.

 

Is initial handshake: true

Is initial handshake: true
Ignoring unsupported cipher suite: SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_ECDH_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_DHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: SSL_DHE_DSS_WITH_AES_128_CBC_SHA256
%% No cached client session
*** ClientHello, TLSv1
RandomCookie:  GMT: 1539270212 bytes = { 190, 36, 155, 63, 249, 228, 34, 47, 110, 206, 253, 217, 59, 120, 159, 128, 17, 126, 243, 42, 33, 79, 54, 197, 9, 239, 67, 24 }
Session ID:  {}
Cipher Suites: [TLS_EMPTY_RENEGOTIATION_INFO_SCSV, SSL_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, SSL_ECDHE_RSA_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_AES_128_CBC_SHA, SSL_ECDH_ECDSA_WITH_AES_128_CBC_SHA, SSL_ECDH_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_RSA_WITH_AES_128_CBC_SHA, SSL_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA, SSL_ECDH_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA]
Compression Methods:  { 0 }
Extension elliptic_curves, curve names: {secp256r1, secp192r1, secp224r1, secp384r1, secp521r1, secp160k1, secp160r1, secp160r2, secp192k1, secp224k1, secp256k1}
Extension ec_point_formats, formats: [uncompressed]
Extension server_name, server_name: [host_name:

 

Thread-19, handling exception: java.net.SocketException: Connection reset
AssemblyLines/XXX.WebServiceListener.0, handling exception: java.net.SocketException: Connection reset
AssemblyLines/XXX.WebServiceListener.0, handling exception: java.net.SocketException: Connection reset

 

Here is my vmoptions file:

-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx1000m
-Dsoapui.properties=soapui.properties
-Dsoapui.https.protocols=SSLv3,TLSv1.2
-Dsoapui.home=C:\Program Files\SmartBear\SoapUI-5.4.0/bin
-Dsoapui.ext.libraries=C:\Program Files\SmartBear\SoapUI-5.4.0/bin/ext
-Dsoapui.ext.listeners=C:\Program Files\SmartBear\SoapUI-5.4.0/bin/listeners
-Dsoapui.ext.actions=C:\Program Files\SmartBear\SoapUI-5.4.0/bin/actions
-Dwsi.dir=C:\Program Files\SmartBear\SoapUI-5.4.0/wsi-test-tools
-Djava.library.path=C:\Program Files\SmartBear\SoapUI-5.4.0/bin
-Djava.util.Arrays.useLegacyMergeSort=true
-splashSmiley FrustratedoapUI-Spashscreen.png

 

I've tried with/without the SSLv3. Makes no difference.

 

I've seen numerous postings on this topic, but they all point to the change I made to the vmoptions file, which does not work for me in SoapUI 5.4.0.

Any advice would be appreciated.

 

 

 

Create XMLCheckpoint object at runtime for XML comparison

$
0
0

I am creatng XMLCheckpoint at run time. I am adding numerous checkoints based on the XML files we get from log.

Checkpoints are created successfully however while comparison i need to pass Checkpoint name to XML object. Since at run time I am picking up the Checkpoint name, it is in String. I know that once i try XML.Checkpoint  (Object.String) it will not work.

Is there any way it can work ? Is there any concept of reflection where i can create object from the String ?

Please see the code below and the comment marked as '//' where i am getting stuck.

 

Code Snipet - 

 

Public Function testFn()

 

Dim XMLCheckpointNew, XMLOptions, XMLUpDoc, CheckPoint
CheckPoint = "XMLCheckPoint"


'Obtains the XMLCheckpoint object
Set XMLCheckpointNew = XML.CheckPoint  //It fails here since Checkpoint is String and it is not recognizing this as an object


'Obtains the XMLCheckpointOptions object
Set XMLOptions = XMLCheckpointNew.Options

 

'Enables the ExtendedLogging XML checkpoint option
XMLOptions.ExtendedLogging = True


'Specifies the XML document path
XMLUpDoc = "C:\ABCD\Test.xml"

'Compares MyXMLCheckpoint with the XML document
XMLCheckpointNew.Compare(XMLUpDoc)

End Function

Viewing all 21160 articles
Browse latest View live