SoapUI adding Truststore is giving KeyStoreException: No private keys found in keystore!
Groovy script-how to fetch multiple value and storing and using later from database
Hello,
I Need small help I have to fetch 2 fileds from one of the database tables as follows:
1.fetch col 1,col 2 from table a where row<4
2.store them in test property data(i++)
3.fetch during test Suite and use
Please help!!
Thanks in advance!!
Regards
Smartpro
Trusted certificate for SOAP Mock service
Hi
I am trying to mock the SOAP service which my client used to interact. The service is mocked to be able to tweak the responses. The service is well established and I am using the WSDL file available to mock soapUI service with no changes.
Next thing is I have now enabled the SSL on this service in soapUI. The problem is that my client (which I do not want to change) does not accept the self signed certificates of mock soapUI service and is failing during handshake.
What I would like to know from you guys is,
A. What's the best way to get CSR file out of mock soapUI service. I could feed it and get trusted certificate from some CA.
B. How to make soapUI mock service to read the newly generated trusted certificate as against default self signed one.
I am sure this is not a new problem but could not find specific answers to my questions. And if you have better ways solving this problem please enlighten me.
Thanks
Y
Script Editor - How to turn off predicted typing?
Personally this predicted typing feature is extremely irritating. Perhaps there is a setting I turned on to make it so bad, but just as an example:
Type in 1 double quote.
Expected: a 2nd double quote to appear
Actual: Nothing appears
Type in your 2nd double quote
Expected nothing to happen since you have closed off your quote
Actual: A third double quote appears
It also applies to Brackets.
Thanks
Just to be clear, I don't mind the itellisense. I prefer it actually, i'd like to keep that.
SmartBear Connect - Thank You!
I just wanted to take a quick moment and thank all of the speakers and contributors who participated in SmartBear Connect and supported TestComplete! Listening to the presentations, connecting with our customers and getting your feedback was extremely valuable. I'm looking forward to the next opportunity to meet up and hope to see lots of engagement in the Community in the meantime!
Special thanks to our contributors / presenters for sharing their knowledge and experience!
How to provide file path in recording tools?
Hello
i'm using Test Complete web module only, and i wanted to provide file(excel) path to one of the area of application, so what will be the recommended steps to provide correct path ?
browse file path <c:/Testfolder/Testdata.xlsx>
how can i set this test file in my store location? and how to assign path of file in recorded script?
thanks
Aimt
How can I just click a certain x y coordinate on a screen regardless of object?
I am testing an application called OnBase. In this particular instance, when I select certain menus and buttons a screen pops. The problem I have is when I record, it is recording specific information from the screen which dynamically changes every time that screen displays a new instance. For example: I recorded something and it built aliases using the number 7431, which happens to be the "appeal number". When that screen is closed, that appeal number is no longer going to be used on that screen, because when that screen is opened again, it will use the next increment of appeal number. Therefore, 7431 will no longer be part of the aliases and TestComplete can no longer find the objects which were on that screen. I need to know how I can just click on an x y location, which will then cause a drop down list and then click again to select a value from the dropdown. I would need to perform this action many times because again all of the objects on this screen have been built using the appeal number which when replayed no longer exist. I would like to do this via keyword testing methods, however, if that's not possible and I can be shown how to do via vbscript, that would work as well. I hope that all makes sense.
I'm using Version 12.31.1833.7.
Is the paid version of SoapUI backward compatible with the open source version?
Hello,
We are trying to consider maybe purchasing the paid version of SoapUI. Currently, I am running an evaluation of the paid version and trying to learn the interface and the extra features. My boss was wondering if the paid version is backward compatible with the open source version, in case we didn't want to continue with the paid version in the future, will we be able to use all the things that were created with the paid one?
Thanks,
Moustafa
Sometimes a test scenario will work, then it won't for no reason
I'm not sure how I can phrase this, but it legit would work one day, then if I open it up the next it may not work. It happens once in awhile, but its enough where its starting to get annoying. The logs usually say things like there was an interruption during the test. Like just general things, and like I easily fix this sometimes but just closing the testing scenario and reopening it.
TC can not call python module
Recently I moved my TC installation to a new machine.
I have python script calling for request like..
import requests, json, hashlib
it gives error
ModuleNotFoundError No module named 'requests' Error location: Unit: ".....TestSuite\....Rest\Script\....Titles" Line: 1 Column: 1.
But I have it...below shows what i get help> "modules"
what am I doing wrong?
I have separate python installation in drive E:\ but I don;t think TC have interaction with it
have installed request in E:\ as well
Unable to get coordinates of Graph
I am working on automating an desktop application which includes a graph with coordinates.
When i object spy on the graph it is displaying as it is axgraph. And no where i was able to spy the coordinates of the graph. Could anyone please help me out and tell how to get the coordinates of the graph?
NOTE: Graph Screenshot attached
Data Driven Testing for SoapUI Free Version for REST POST Call.
I need to run a data driven testing for a POST request mentioned as below using the SoapUI Free version. Please help.
URI : http://serverIPort
Request Body : {"get_range": ["100.169.145.70"] }
Response Body : {"ip_ranges": [{ "ip": "100.169.145.70", "ipint": 1688834374, "end": 1688862719, "start": 168879718n4 }]}
Automation Script :
The script for single request is working. However, to make it data-driven, I have created an array with the request body and wanted to pass it to the test. The script for multiple request blobs is failing. Script :
import groovy.json.JsonSlurper
//DataDriven Testing
//def ipsArray = new String[2]
//ipsArray[0]='{"get_range": ["81.169.145.70"] }'
//ipsArray[1]='{"get_range": ["190.169.145.70"] }'
//def IpRangeRequestStep = testRunner.testcase.getTestStepByName(IpRangeRequest-1)
//def IpRangeRequest = IpRangeRequestStep.getTestRequest()
//ipRangeTest.setRequestContent(ipsArray)
//testRunner.runTestStepByName(IpRangeRequest-1)
//
def ipRangeTest = testRunner.runTestStepByName("IpRangeRequest-1")
def response = ipRangeTest.getResponse()
def jsonStr = response.getContentAsString()
JsonSlurper serializer = new JsonSlurper()
def object = serializer.parseText(jsonStr)
log.info(object.size())
object.each{ log.info(it) }
Attached is the screen capture of how the test was created.
How to change clipboard
I have a text file that contains text and numbers. I copy the contents of the file to the clipboard. I need to round all the numbers in the clipboard and insert the modified contents of the into a new text file. How do I change the buffer via VBScript?
how to sign UsernameToken?
Hi,
the api I try to communicate with requires to sign the UsernameToken. How do I do that?
Whatever I try either the UsernameToken is removed from the request upon signing or nothing is signed at all.
The api expects a soapenv:Envelope .
Here is what I did so far:
I created two outgoing ws-security configurations:
- Username
- type: username
- pwd type: PasswordText
- do not add nonce or created
- Signature
- type: signature
- Binary Security Token
- single certificate for signing
- several parts added
To create the final request I now do:
- click "outgoing wss" -> apply username
- now the UsernameToken is added to the request as expected
- click "outgoing wss" -> apply signature
- now the UsernameToken is removed
- send the request
or
- add the UsernameToken to the request manually
- click "outgoing wss" -> apply signature
- now the UsernameToken is removed
- nothing is signed
- send the request
Problem is that upon applying signature the UsernameToken is removed from the request. If I just add it manually to the request xml and put the UsernameToken to the parts to be sign nothing get's signed at all.
When adding the UsernameToken to the parts to be signed I add it like this:
- Name: UsernameToken
- Namespace: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
- Encode: Content
Web application Page rendering time measurement
Hello,
Would like to check one thing ... Does Loadcomplete measure the page rendering time ? just like what a normal user can experience in a physical web browser ...? i.e not the page loading time which will be the measurement at the protocol level for request-response cycle...
and I am interested to do this performance test under no user loads.... so more like to measure or test the performance of app at the client side... is there a option or way with SmartBear products for this
Warm Regards
Musaffir
How to get notification when added as reviewer?
When someone adds me to a review in code collaborator I am not being sent an email notifying me that I am part of the review process. Can you help me with the settings so that I can get notification when added to any Review.
Regards,
Mayur Rathore
how to find my own posts
Hi,
I've just posted a question and I have two questions related to this:
- why there is no link for posting in the profile page ?
- how can I retrieve my own posts if I need to update it ? I'm not even sure it's been taken into account ...
Maven + SoapUI ClassNotFoundException(com.microsoft.sqlserver.jdbc.SQLServerDriver)
Hi Guy's, need a little bit of help with Maven and SoapUI. The long-term plan is to integrate my SoapUI tests with Jenkins, however, i'm unfortunately falling down at the first hurdle, when getting my tests to run with Maven. Whenever I run my SoapUI tests via maven on the command line I keep getting the following error:
2017-09-20 10:03:06,977 ERROR [errorlog] java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at groovy.sql.Sql.loadDriver(Sql.java:701)
at groovy.sql.Sql.newInstance(Sql.java:483)
at groovy.sql.Sql$newInstance.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at Script1.run(Script1.groovy:13)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:100)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:154)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:239)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:52)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:152)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:47)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:139)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Now, As far as I'm aware I have included all the necessary dependencies. Here is a copy of my pom file. It's a simple one, I've borrowed from the internet and tweaked the usual bit.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.smartbear.samples</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Maven 2 SoapUI Sample</name>
<url>http://maven.apache.org</url>
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.0.0</version>
<configuration>
<outputFolder>logs</outputFolder>
<printReport>true</printReport>
<junitReport>true</junitReport>
<projectFile>Waste-Expert-Admin-Service-API-soapui-project.xml</projectFile>
</configuration>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.31</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Can anybody spot any obvious mistake I've made? have I missed something?
Is it possible to choose current device in TestComplete Keyword?
Hello,
When I create keyword test in test complete, the first action of the test is a "select device" instruction.
How can define for value "Current device" for execute this test into differents devices whithout to change before every execution, the reference of used smartphone?
Thanks
How to pass to the next test in the script after an error occurs.
Hi
I performed my tests using two levels of test list, where in the first level has the procedure call containing all tests of a particular module and when executing an item in this list, inside this item has the list of tests that is executed, when an error occurs I made the handling of this error in the OnLogError to execute the next test of the list, but I just encountered a recursion error in the OnLogError, I would like to know if anyone would have any idea how I can call the next test of the my list when an error occurs, avoiding recursion. I used the deplhi script language.
Here's an example of how I run my lists:
UnitPrincipal:
// runs the first test list
procedure executaTestesListaPrimeiroNivel;
var lista, teste : string;
var i, posicao : integer;
begin
posicao : = 0;
if Project.Variables.IdAvancado > 0 then posicao := Project.Variables.IdAvancado;
lista := Project.Variables.listaPrimeiroNivel;
if posicao <= aqString.GetListLength(lista) - 2 then
begin
for i := posicao to aqString.GetListLength(lista) - 2 do
begin
teste := aqString.GetListItem(lista, i);
Project.Variables.IdAvancado := i;
Evaluate(''+teste+'');
Log.Message('Executou o teste: '+teste);
end;
end;
Project.Variables.IdAvancado := 0;
end;
procedure Geral_Modules;
begin
removeVariavelProjeto('listaPrimeiroNivel');
Project.Variables.descAvancadoGeral := 'Geral_Modules';
adicionaTesteListaPrimeiroNivel('Module1');
adicionaTesteListaPrimeiroNivel('Module2');
adicionaTesteListaPrimeiroNivel('Module3');
executaTestesListaPrimeiroNivel;
end;
Unit Module 1
// runs the second list of tests
procedure executaTestesListaSegundoNivel(descUnit : string);
var lista, teste : string;
var i, posicao : integer;
begin
posicao : = 0;
if Project.Variables.IdItem > 0 then posicao := Project.Variables.IdItem;
lista := Project.Variables.listaSegundoNivel;
// Adicionada verificação para quando ocorrer erro no ultimo item da lista continuar
if posicao <= aqString.GetListLength(lista) - 2 then
begin
// foi adicionado -2 ao tamanho da lista porque o ao adiconar um novo item na lista o testComplete adiicona ";"(ponto e virgula) ao final assim criando um item vazio no final
for i := posicao to aqString.GetListLength(lista) - 2 do
begin
teste := aqString.GetListItem(lista, i);
Project.Variables.IdItem := i;
removeVariavelProjeto('listaNomeRotina');
Evaluate(''+descUnit+'.'+teste+'');
Log.Message('Executou o teste: '+teste);
end;
end;
Project.Variables.IdItem := 0;
end;
procedure teste1;
begin
inserirItemBD('BAN002CA','001', 'CT_1_14', 'Cadastrar conta bancária para o banco Itaú');
deletaIniTestes;
configBaseIni('ECO');
IniciaSistemaEco;
BAN002CA_Avancado_Condicoes_Item_01;
FBAN002CA_Test_01;
fecharSistemaEco;
copiaBaseIni('BAN002CA','ECO', '001');
end;
procedure teste2;
begin
inserirItemBD('BAN002CA','002', 'CT_1_129', 'Cadastrar conta bancária para o banco Santander');
deletaIniTestes;
configBaseIni('ECO');
IniciaSistemaEco;
BAN002CA_Avancado_Condicoes_Item_02;
FBAN002CA_Test_02;
fecharSistemaEco;
copiaBaseIni('BAN002CA','ECO', '002');
end;
procedure teste3;
begin
inserirItemBD('BAN002CA','003', 'CT_1_136', 'Cadastrar conta bancária para o banco Bradesco');
deletaIniTestes;
configBaseIni('ECO');
IniciaSistemaEco;
BAN002CA_Avancado_Condicoes_Item_03;
FBAN002CA_Test_03;
fecharSistemaEco;
copiaBaseIni('BAN002CA','ECO', '003');
end;
procedure Geral_Module1;
begin
removeVariavelProjeto('listaSegundoNivel');
Project.Variables.descAvancadoGeral := 'Geral_Module1';
adicionaTesteListaSegundoNivel('teste1');
adicionaTesteListaSegundoNivel('teste2');
adicionaTesteListaSegundoNivel('teste3');
executaTestesListaSegundoNivel('Geral_Module1');
end;