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

"Input/Output error occurred in secure storage area of HASP SL key

$
0
0

We had a successful implementation of License Manager and Test complete.  When we moved our host to a new location and changed the IP address we are not seeing the Sentinel license keys.  

 

Also we are seing the error below

"Input/Output error occurred in secure storage area of HASP SL key or a USB error occurred when communicating with a HASP HL key. Error code: hasp_update, 43"

 

Our networking is set up correctly but we are not communicating.  We do not have any firewall blocking our communication.


NameMapping issue

$
0
0

Hi,

I had with an old namemapping this structure : Aliases.Process.Form.Edit

(on which I was doing a SetText() )

With another version of the executable, the mapping structure changed to Aliases.Process.Form.Combobox.Edit

As you imagine I just can't modify the namemapping, but in this case I'm afraid I have to insert the ".Combobox" within the structure in each places into the script (which are numerous).

Is there a better way to overcome that problem please ?

Thank you,

Swagger Hub - Api Catalog

$
0
0

Hi ,

 

We are currently in the process of evaluating tooling for api catalog/registry.   Does swagger hub provide the following

 

1) API to publish the API definitions to swaggerhub so that we can do it via automation(CI/CD pipeline) rather than manually importing the OAS.

2)Is it possible to store or record information like expected SLA, supported TPS, consumer information and other metadata information relevant to the  API?

 

 

 

Regular expression

$
0
0

I am trying to do a check on a user input. I would like to check to see if a user enters a valid ip number. I would like to do something like:  BuiltIn.StrMatches(ip, "10.10." + [0-9]+ + "." +[0-9]+). Where ip in the value of the user's IP address and I would like to try to String match is with the regular expression "10.10." + [0-9]+ + "." +[0-9]+, or something along those lines. I want to verify that the first number is 10 then a period then 10 again then a three digit number or less then a period then another three digit number or less. 

API response not getting generated

$
0
0

I successfully run my API (see "Inspector" file for screenshot).  I then generate the API but it doesn't have a response (see "GeneratedAPI file for screenshot).  What are the circumstances when this would occur?

Security test using groovy script has an error.

$
0
0

The application uses OAuth1.0.  For the scan, I have created the groovy scripts for each test case (every other endpoint). When I run through the groovy script, it was executed without any problem, and I can check the right response as below.

scanResult.png

 

 

responseUsingGroovy.png

 

However, when I send the request in the REST editor, the response shows an error "oauth_problem=nonce_used".
Even though the groovyscript was coded correctly, I don't think the SoapUI Pro scan can grap the groovy script code properly when I run the security scans. reponseFromRESTscan.png

 

 

The security scan report shows same response from above the reponse. 

 

scanResult.png

 

How can I resolve this issue in the SoupUI scan?

 

 

 

 

Switching workspace to open another project gives error.

$
0
0

I'm working on 2 different projects and I would like to switch from one workspace to another. When I switch workpace and try to open a new project, I get below errpr. Please suggest - 

"com.eviware.soapui.support.SoapUIException: Failed to load workspaceSmiley Surprisedrg.apache.xmlbeans.XmlException: Element soapui-project@http://eviware.com/soapui/config is not a valid soapui-workspace@http://eviware.com/soapui/config document or a valid substitution."

Where is HTTP Monitor UI ?

$
0
0

Hello,

 

Once HTTP Monitor is launched in Single panel Workspace mode, I launch a test and then I cannot find the monitor panel any longer. Nor can I stop it to release the listening port !

So the only workaround I found is to stop ReadyAPI, then restart and switch to Tabbed desktop mode.

Is this the only way ? It is rather inconvenient. Some tests are not reentrant, etc.

 

Thanks in advance,

Philippe


how to use java-diff-utils

$
0
0

Hello,

for a test, I need to compare files in a groovy script and I found out that a library could help me perform this in a simple way. However, though there are quite a lot of examples that I can rely on in order to build my own methods, I am unable to use this lib. I cannot find anywhere how to import / use this lib in my groovy script.

I set the java-diff-utils-2.2.0.jar and jsr305-3.0.0.jar in bin/ext and I use the following example in a groovy step, just for trying, but it fails (unable to resolve class Patch @ line 70, column 19)

 

I guess that import is wrong, but I'm not fluent in groovy/java and not familiar at all with dependency and lib handling

Could anyone help me figure out what's wrong ?

 

import difflib.*;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.util.AbstractList;
import java.util.LinkedList;
import java.util.List;

public class TestDiffUtils {

    public TestDiffUtils() {

    }

    // Helper method to read the files to compare into memory, convert them to a list of Strings which can be used by the DiffUtils library for comparison
    private static List fileToLines(String filename) {
        List lines = new LinkedList();
        String line;
        try {
            URL path = TestDiffUtils.class.getResource(filename);
            File f = new File(path.getFile());
            BufferedReader input = new BufferedReader(new FileReader(f));
            while ((line = input.readLine()) != null) {
                lines.add(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }

        return lines;
    }

    // Helper method to convert a String to List<Character> : to be used with DiffUtils.diff() method when finding character diffs within the line diffs
    public static List<Character> asList(final String string) {
        return new AbstractList<Character>() {
            public int size() { return string.length(); }
            public Character get(int index) { return string.charAt(index); }
        };
    }

    private static void performDiff(String testName) {
        String origFileName = null;
        String revisedFileName = null;

        Boolean continueTest = true;    // continue unless we can't

        if( testName.compareTo("large-file-test") == 0 )
        {
            origFileName = "test_large_file.xml";
            revisedFileName = "test_large_file_revised.xml";
        }else if( testName.compareTo("small-file-test") == 0 ){
            origFileName = "originalFile.txt";
            revisedFileName = "revisedFile.txt";
        }else if( testName.compareTo("large-file-test-single-line") == 0 ){
            origFileName = "test_large_file_SingleLine.xml";
            revisedFileName = "test_large_file_revised_SingleLine.xml";
        }else{
            continueTest = false;
        }

        if( continueTest && origFileName != null && revisedFileName != null ) {
            // Convert the orig and revised files to List<String> format that DiffUtils.diff() uses
            List<String> originalLines = fileToLines(origFileName);
            List<String> revisedLines = fileToLines(revisedFileName);

            // Get the line-by-line diffs
            Patch patch = DiffUtils.diff(originalLines, revisedLines);
            List<Delta> deltas = patch.getDeltas();
            for (Delta delta : deltas) {
                // The line in the orig file that this current diff occurs at
                int lineOfDiffInOrig = delta.getOriginal().getPosition() + 1;

                // Only continue with the diff if the revised lines is not empty (we will get IndexOu0tOfBoundsExceptions if we don't do this check)
                if (delta.getOriginal().getLines().size() > 0 && delta.getRevised().getLines().size() > 0) {
                    // Get orig and revised lines in List<Character> format
                    List<Character> origChars = asList(((String) delta.getOriginal().getLines().get(0)));
                    List<Character> revisedChars = asList(((String) delta.getRevised().getLines().get(0)));

                    // Get the character-by-character diffs
                    Patch deltaPatch = DiffUtils.diff(origChars, revisedChars);
                    List<Delta> strDeltas = deltaPatch.getDeltas();
                    for (Delta strDelta : strDeltas) {
                        int charPosOfDiffInOrig = strDelta.getOriginal().getPosition() + 1;
                        int lengthOfDiffInOrig = charPosOfDiffInOrig + strDelta.getOriginal().size();

                        System.out.println("Line" + lineOfDiffInOrig + " : [" + charPosOfDiffInOrig + "," + lengthOfDiffInOrig + "]");
                    }
                }
            }
        }
    }

    public static void main(String[] args) {
        //performDiff("large-file-test");
        //performDiff("small-file-test");
        performDiff("large-file-test-single-line");
    }
}

thanks for any help

 

Alex

WPF Combobox have no ClickItem

$
0
0

Good day everybody,

 

I try to use a ClickItem in WPF-Combobox but unfortunatly there is no ClickItem Method.

Look:

That is my Combobox: 

Aliases.JTL_Wawi.HwndSource_Window2.KundeNeueAdress.NeueLayoutGroup.CompanySelect

Photo 0.jpg , 1.jpg

 

TC make one Object for every Item in Combobox!

Photo 2.jpg

 

Have you maybe a solution. I want to use ItemIndex but there is no Itemindex Method

 

How to stay in the same tab for all tests

$
0
0

Hello everybody,

 

For unknown reason, sometimes (most of the time..) when I play recorded tests it opens a new tab almost each time, and resulting a play in one tab and while waiting some orders from the second one, it plays on a new tab, resulting errors in my tests. This is a bit annoying. Any idea how to stay in the same tab forever for all my tests?

(I checked all options without any success)

 

Many thansk for your help,

Cheers'

Does anyone know how to delete Test Item links to external DevOps test cases?

$
0
0

Is it possible to delete external test case links to Azure DevOps test cases?

 

Removal does not seem possible via the UI.

 

I tried removing the Test Item, re-creating it, then correctly re-linking it to the correct Devops Test Case and somehow the incorrect link remains because the underlying TC Keword Test is the same.

 

Are there any back-end ways of doing this? 

Kindly resolve java.lang.ClassCastException for XBeansXPath issue.

$
0
0

Hi Team,

 

I am facing issue with below exception.

 

xmlHolder.getNodeValue("//*:someID")

As part of the script of MockOperation I am using expression like //*:someID , becuase of this I am getting below exception. If I don't use this expression the exception is not generating.

 

java.lang.ClassCastException: org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to org.apache.xmlbeans.impl.store.SaxonXBeansDelegate$SelectPathInterface

 

I tried by removing org.apache.poi: poi-ooxml:4.1.0 and org.reflections:reflections:0.9.11

But the issue not resolved.

Please help.

SOAPUI Mock Service without action in Content-Type

$
0
0

I'm having an Mock-Service wich is working fine when using a SOAPUI request.

I'm now trying to communicate with that mock service from an WCF client, but getting the following error message:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><soap:Code><soap:Value>Server</soap:Value></soap:Code><soap:Reason><!--1 or more repetitions:--><soap:Text xml:lang="en">Missing operation for soapAction [null] and body element [null] with SOAP Version [SOAP 1.2]</soap:Text></soap:Reason></soap:Fault></soap:Body></soap:Envelope>

It seems, that the mock service needs the action attribute in the HTTP Content-Type header. The requests are exactly the same (recorded by fiddler), except the action attribute.

 

When changing the request in SOAP-UI, switching the option "Skip SOAP Action" from false to true, I'm getting the same error message as in the WCF client.

 

I'm using WS-Addressing.

See the requests.

Working:

POST https://localhost:1234/mock_Management HTTP/1.1
Connection: close
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="http://foo.bar/CreateID"
Content-Length: 871
Host: localhost:1234
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:MessageID>urn:uuid:0458e1a6-83fd-46c8-80f2-641ffb8783e7</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">https://localhost/Test/Management.svc</a:To><a:Action s:mustUnderstand="1">http://foo.bar/CreateID</a:Action></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/></s:Envelope>

 

Not working (as of WCF):

POST https://localhost:1234/mock_Management HTTP/1.1
Connection: close
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8
Content-Length: 871
Host: localhost:1234
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:MessageID>urn:uuid:0458e1a6-83fd-46c8-80f2-641ffb8783e7</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">https://localhost/Test/Management.svc</a:To><a:Action s:mustUnderstand="1">http://foo.bar/CreateID</a:Action></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/></s:Envelope>

 

Can I tell the mock service to use WS-Addressing?

Click not firing underlying object - INCONSISTENTLY

$
0
0

Here is a pattern. I am working on a pretty large project to basically change my tests for a BIG UI change within our AUT. I work on the test project happily day after day. I get a couple of great runs in the green. I go to run it again over night while I am merrily sleeping. I come in to find the CLICK behavior is not working. Click not working is a bit mind bending, right? Of course click works. I try to run again while looking at an example test, and it works fine. Take a look at the (sorry large) MHT for System Smoke Tests / AddCommentCodeSmoke. In the log folder Step: Add and Check, a click is occuring. I can see evidence in the log that the click is occuring. The error occurs then on the next action because the expected screen is not there. My autowait timeout is set to 20000. So there should be plenty of time to load the page for the next event as it searches for that object. 

 

This is happening in many tests. I am trying to imagine if increasing my piddly (100) delay between events would help? 

 

Anyone seen t

 

 

 


Object finder not able to find child objects on JavaFx panel in Oxygen XML Editor.

$
0
0

Hello team,

My name is Atul Patil from Berlin Germany working with Acrolinx GmbH.
We are current customers having Test complete and test execute licenses and currently evaluating renewal of the licenses.

our company owns a product of content optimization and which has integration with almost all the editors in the market.

out of which we are trying to automate cases for Oxygen editor using test complete.
But our product's sidebar panel is based on the JavaFX web browser, and Testcomplete's object finder is not able to traverse through different child objects of the panel.

we need to understnad why this is happening ? where as when panel is based on the IE browser (for MS Word editor), it works fine.

But Oxygen editor using JavaFX browser to load our product and now we are not able to traveser through the child objects of our sidebar.

can you please extend you support on this problem ?

I am using
Oxygen editor 21.1 version
Test complete Version: 14.0.308.7 x64

Unable to find Test Logs, not sure if they are being logged

$
0
0

Hi,

 

I am using SpecFlow and Nunit 3 with NUnit3Adaptor.

 

Within my test steps I am logging some test messages and capturing screenthot but I can find anything in the bin folder nor in the Project folder. I don't even see TestResults folder.

 

LaunchApplication();

IDriver Driver = new LocalDriver();
Driver.Log.Message("Application Launched");
Driver.Log.Screenshot(test.controlGrid, "Screenhot of a Grid table");
Driver.Log.Message("Test Again");
Assert.Fail();// force failing in case the logs are being cleared

 

Am I missing something here ? Can anyone please help me how to use the TestLeft's capturing Test Log and screenshot funtionality?

Thanks in advance

 

 

Loading RAML in ReadyAPI

$
0
0

Hi,

I am trying to load RAML file in Ready API latest version and observe below error. There is no clue on this ,could anyone be able to guide me in resolving this issue?

Tue Nov 05 16:48:36 GMT 2019: ERROR: java.lang.NullPointerException

  • java.lang.NullPointerException
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.generateRule(TypeToRuleVisitor.java:89)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitArray(TypeToRuleVisitor.java:323)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitArray(TypeToRuleVisitor.java:66)
  • at org.raml.v2.internal.impl.v10.type.ArrayResolvedType.visit(ArrayResolvedType.java:149)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.generateRule(TypeToRuleVisitor.java:89)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitObject(TypeToRuleVisitor.java:158)
  • at org.raml.v2.internal.impl.v10.type.TypeToRuleVisitor.visitObject(TypeToRuleVisitor.java:66)
  • at org.raml.v2.internal.impl.v10.type.ObjectResolvedType.visit(ObjectResolvedType.java:275)
  • at org.raml.v2.internal.impl.v10.phase.ExampleValidationPhase.validateJson(ExampleValidationPhase.java:134)
  • at org.raml.v2.internal.impl.v10.phase.ExampleValidationPhase.validate(ExampleValidationPhase.java:121)
  • at org.raml.v2.internal.impl.v10.phase.ExampleValidationPhase.apply(ExampleValidationPhase.java:81)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.runPhases(Raml10Builder.java:114)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.build(Raml10Builder.java:93)
  • at org.raml.v2.internal.impl.v10.phase.LibraryLinkingTransformation.transform(LibraryLinkingTransformation.java:69)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:45)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.yagi.framework.phase.TransformationPhase.apply(TransformationPhase.java:54)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.runPhases(Raml10Builder.java:114)
  • at org.raml.v2.internal.impl.v10.Raml10Builder.build(Raml10Builder.java:93)
  • at org.raml.v2.internal.impl.RamlBuilder.build(RamlBuilder.java:110)
  • at org.raml.v2.internal.impl.RamlBuilder.build(RamlBuilder.java:98)
  • at org.raml.v2.api.RamlModelBuilder.buildApi(RamlModelBuilder.java:124)
  • at org.raml.v2.api.RamlModelBuilder.buildApi(RamlModelBuilder.java:92)
  • at org.raml.v2.api.RamlModelBuilder$buildApi.call(Unknown Source)
  • at com.smartbear.soapui.raml.RamlV10Importer.importRaml(RamlV10Importer.groovy:48)
  • at com.smartbear.soapui.raml.actions.RamlImporterWorker.construct(RamlImporterWorker.java:55)
  • at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:47)
  • at com.eviware.soapui.support.swing.SwingWorker.run(SwingWorker.java:88)

API keeps running for Longer time

$
0
0

After mocking a Restful API, provided all the necessary details in the request in ServiceV and its taking longer time than expected.

Closed the Ready API application and after re running the issue still exists. How to resolve this and where to check the logs for the runs?

 

 

"Use Insert On Screen Action" Not Available in Visualizer

$
0
0

Hi Everyone,

 

Just watched Test Complete 101.  In the video, Test Complete caches all the objects.  This allows you to open an image in Visualizer and add additional test steps later.  I created my first successful desktop app test, but when I open the images in Visualizer I don't have the functionality shown in the video. In the video, moving the cursor over the image caused other textboxes, etc. to be selected.  Then you could right-click and choose "Insert On Screen Action."  This is not happening for me.  What might I be overlooking?  Is there a setting that I need to turn on to get this funtionality to work?  

 

Thanks in advance!

Viewing all 21061 articles
Browse latest View live