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

How to resize an object of type Panel in the Web Page?

$
0
0

Hello Everyone,

 

I am working on a script where it requires me to change the size of a panel by dragging it in the web application. I have used the Drag method in order to resize my panel.

I have written the following where width and heigth are the properties for the particular object retreived by Object Spy- 

draggableObj.Drag(width, height, 20, 0)

It is not throwing any error, but also not changing the width of my object.

 

So could someone please suggest me how to go about this?

 

Thanks in advance.


v12.6 Issues with Xamarin Forms Andoid Objects

$
0
0

Hello,

 

I was using v12.5 with our Xamarin Forms application and all was moving along.  However, I've recently installed v12.6 (and re-instrumented with the new DLLs) and now TestComplete can't see my objects any more.  Before, the property "XFControlName" worked like a charm but now this field is only blank on all my objects.  I find some distinguishing properties buried way down in "StyleId" but these are shared across controls usually and not always unique.  I've worked with the develeoper re-building multiple times now with the same result.  Works fine instrumenting in v12.5 but not in v12.6.  He made one mention that the injected assembly was like a 12.0.0 version but not sure if that makes a difference.  At this point, all signs point to instrumenting Xamarin Forms applications in v12.6 is broken.

 

Attaching two images of the way objects were previously recognized in 12.5 and now how everything is just a "RadEntry" in 12.6.

 

Anyone else have issues with the latest version and Xamarin Forms applications??

 

~Chris

code generation documentation

$
0
0

The Export menu has two long lists of code generation options, one for Client SDK and one for Server Stub, each being just a name, such as android, haskell, csharp-dotnet2, etc.  Is there any documentation giving details such as the platforms each of these can build and run on and what dependencies they have?  That would be very helpful.  For instance, you have to export to the csharp-dotnet2 option and inspect the generated content to discover that it has a build file only for mono.  Or in the case of android, in which the name indicates the platform but not the language, what language is it using?  Thank you.

Actions in .NET app not recorded

$
0
0

Hi,

 

I’m new to TestComplete (12.41). I’m trying to record the following steps on a .NET 4.5 desktop app:

 

  1. Open desktop app by double-clicking the icon on the desktop
  2. Once the app is open, select File/Open from the menu bar of the app
  3. Enter the name of the file that I want to open
  4. Select File/Exit

 

The only action that gets recorded is step #1. There are no other actions recorded.

In Install Extensions, I have .NET Application Support, .NET Classes, Desktop Testing, UI Automation Support

 

What am I missing?

How does SOAPUI calculate the SignatureValue for a SignedInfo section in SOAP header

$
0
0

I have a SOAPUI project setup with outgoing WSS configuration to insert a header with a Signature section that includes the digital signature of the Timestamp element. Using this project, it successfully generates the correct SOAP header with the digital signature elements and the host processes the request successfully. Here is the SOAPUI configuration setup to add the SOAP header.

 

SOAPUI-config.jpg

The generated SOAP message resembles the following.

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:cmaw="http://estarstation.com/cmaWS/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://estarstation.com/xsd">
  <soap:Header>
    <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      <wsse:UsernameToken wsu:Id="UsernameToken-0EDE7F54075E85BDF615420409942248">
        <wsse:Username>528725.RTCMACERT</wsse:Username>
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">tGupsbJwWtnQU1usa9hBFYWfnRk=</wsse:Password>
        <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">utFyPzosQNlMFihkXMCZuw==</wsse:Nonce>
        <wsu:Created>2018-11-12T16:43:14.224Z</wsu:Created>
      </wsse:UsernameToken>
      <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="X509-0EDE7F54075E85BDF615420409941614">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</wsse:BinarySecurityToken>
      <ds:Signature Id="SIG-0EDE7F54075E85BDF615420409941897" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:SignedInfo>
          <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
            <ec:InclusiveNamespaces PrefixList="cmaw soap xsd" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" />
          </ds:CanonicalizationMethod>
          <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
          <ds:Reference URI="#TS-0EDE7F54075E85BDF615420409941283">
            <ds:Transforms>
              <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                <ec:InclusiveNamespaces PrefixList="wsse cmaw soap xsd" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" />
              </ds:Transform>
            </ds:Transforms>
            <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
            <ds:DigestValue>fM/i6lk0onD4vDQtHrKKrv8JeT6IgqFwV3FBBeymS28=</ds:DigestValue>
    </ds:Reference>
        </ds:SignedInfo>
        <ds:SignatureValue>e9+LmcpbcgZ+m282+57rIJjsU8oWjkrQrql5u9qmPxTkDjjjqOq0O8OOj+Ud3/L0p8w8bg07ByPK7RwfDCiZOZMvuqLup4wR+l7IKmDmcXvrNx/7nCkFCp3UUV6B0o+Z5cuTWTk6VjZkcLphKN6ZebDQFGwX2N4CVAsju+BsF26BHbf430indaEbCu59ClBkdZxXnmJCTdNeYW1P0967RK2gJF9iPG7FPZrY+bJzHpgm9AfVrAEtyNfW6pL24IZtrOs/D/9c6w6dCpYLYo4sdWLmhCvpf+ehfc2vDJ4OjVRJNOCma6L7laJS3Guyory45o2flALhLCakMIqQpuESXw==</ds:SignatureValue>
        <ds:KeyInfo Id="KI-0EDE7F54075E85BDF615420409941825">
          <wsse:SecurityTokenReference wsu:Id="STR-0EDE7F54075E85BDF615420409941836">
            <wsse:Reference URI="#X509-0EDE7F54075E85BDF615420409941614" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" />
          </wsse:SecurityTokenReference>
        </ds:KeyInfo>
      </ds:Signature>
      <wsu:Timestamp wsu:Id="TS-0EDE7F54075E85BDF615420409941283">
        <wsu:Created>2018-11-12T16:43:14Z</wsu:Created>
        <wsu:Expires>2018-11-12T16:43:44Z</wsu:Expires>
      </wsu:Timestamp>
    </wsse:Security>
  </soap:Header>
  <soap:Body>
    <xsd:cardInqMaintDisplayParam>
      <cmaw:cardNumber>5287250200316234</cmaw:cardNumber>
      <cmaw:memberNumber>0</cmaw:memberNumber>
      <cmaw:endUser>RTCMA</cmaw:endUser>
    </xsd:cardInqMaintDisplayParam>
  </soap:Body>
</soap:Envelope>

Now that I can successfully use SOAPUI to communicate with the host server, I need to programmatically generated the SOAP header to send to the host server. I am programming using .NET 4.6.2 framework and C# language. While I have successfully generated and matched most of the SOAPUI generated header elements (including the 'DigestValue'), I cannot get a match on 'SignatureValue'.

  1. Does anyone know how the 'SignatureValue' is generated?
  2. Does it simply sign the Base64 'DigestValue'? Or does it sign the converted Base64 (byte array) of 'DigestValue'?
  3. Best yet, does some on know the C# logic used to generate the Signature element such that I generate a 'SignatureValue' that will match that generated in SOAPUI. 

 Here is a code snippet of how I am generating the values in the Signature element:

 

public static void SignXmlFile ( string FileName, string SignedFileName )
{
  X509Certificate2 cert = new X509Certificate2(File.ReadAllBytes(Settings.Default.CertFilePFX), Settings.Default.CertPassword, X509KeyStorageFlags.Exportable);

  XmlDsigDocument xmlHeader = new XmlDsigDocument();      // Create a new XML document.
  // xmlHeader.PreserveWhitespace = true;
  xmlHeader.Load ( new XmlTextReader ( FileName ) );      // Load the passed XML file using its name.
  
  XmlNamespaceManager nSpMgr = new XmlNamespaceManager(xmlHeader.NameTable);
  nSpMgr.AddNamespace ( "soap", CustomSignedXml.xmlSoapEnvelopeUrl );
  nSpMgr.AddNamespace ( "wsu", CustomSignedXml.xmlOasisWSSSecurityUtilUrl );
  nSpMgr.AddNamespace ( "wsse", CustomSignedXml.xmlOasisWSSSecurityExtUrl );
  nSpMgr.AddNamespace ( "ec", CustomSignedXml.xmlOasisWSSSecurityExtUrl );

 XPathNavigator docNav = xmlHeader.CreateNavigator();

  XPathNavigator timestampNav = docNav.SelectSingleNode("/soap:Envelope/soap:Header/wsse:Security/wsu:Timestamp", nSpMgr);
  XPathNavigator binarysecuritytokenNav = docNav.SelectSingleNode("/soap:Envelope/soap:Header/wsse:Security/wsse:BinarySecurityToken", nSpMgr);

  string timestampID = timestampNav.GetAttribute ( "Id", CustomSignedXml.xmlOasisWSSSecurityUtilUrl );
  string binarySecurityTokenID = binarysecuritytokenNav.GetAttribute ( "Id", CustomSignedXml.xmlOasisWSSSecurityUtilUrl );

  RSAPKCS1SHA256SignatureDescription.Register ( );

  RSACryptoServiceProvider rsaKey = new RSACryptoServiceProvider(new CspParameters(24));
  rsaKey.PersistKeyInCsp = false;

  string exportedKeyMaterial = cert.GetRSAPrivateKey().ToXmlString(true);
  rsaKey.FromXmlString ( exportedKeyMaterial );

  CustomSignedXml signedXml = new CustomSignedXml(xmlHeader);
  signedXml.SigningKey = rsaKey;
  signedXml.Signature.Id = "SIG-0EDE7F54075E85BDF615420409941897";
  signedXml.SignedInfo.CanonicalizationMethod = SignedXml.XmlDsigExcC14NTransformUrl;
  signedXml.SignedInfo.SignatureMethod = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";

  XmlDsigExcC14NTransform canMethod = (XmlDsigExcC14NTransform)signedXml.SignedInfo.CanonicalizationMethodObject;
  canMethod.InclusiveNamespacesPrefixList = "cmaw soap xsd";

  Reference reference = new Reference();
  reference.Uri = "#" + timestampID;
  reference.DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";

  XmlDsigExcC14NTransform transformDataTS = new XmlDsigExcC14NTransform();
  transformDataTS.InclusiveNamespacesPrefixList = "wsse cmaw soap xsd";

  byte[] dataToHashTS = Encoding.UTF8.GetBytes(timestampNav.OuterXml);
  transformDataTS.LoadInput ( new MemoryStream ( dataToHashTS ) );

  reference.AddTransform ( transformDataTS );

  signedXml.AddReference ( reference );

  KeyInfo keyInfo = new KeyInfo();
  keyInfo.Id = "KI-0EDE7F54075E85BDF615420409941825";

  SecurityTokenReference skr = new SecurityTokenReference();
  skr.Id = "STR-0EDE7F54075E85BDF615420409941836";
  skr.Reference = binarySecurityTokenID;   // Binary Security Token ID  
  skr.ValueType = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";

  keyInfo.AddClause ( skr );

  signedXml.KeyInfo = keyInfo;
  signedXml.ComputeSignature ( );       // Compute the signature

  XmlElement xmlDigitalSignature = signedXml.GetXml();

  // Append the element to the XML document, within <wsse:Security/> node
  XPathNavigator headerNode = docNav.SelectSingleNode("soap:Envelope/soap:Header", nSpMgr);

  nSpMgr.AddNamespace ( "wsse", CustomSignedXml.xmlOasisWSSSecurityExtUrl );
  nSpMgr.AddNamespace ( "wsse", CustomSignedXml.xmlSoapSecurityUrl );

  XPathNavigator secNode = headerNode.SelectSingleNode("wsse:Security", nSpMgr);

  // Append the Signature element
  XPathNavigator navSignature = xmlDigitalSignature.CreateNavigator();
  secNode.AppendChild ( navSignature );

  // Save the signed XML document to a file specified using the passed string
  XmlTextWriter xmltw = new XmlTextWriter(SignedFileName, new UTF8Encoding(false));
  xmltw.Formatting = Formatting.Indented;
  xmlHeader.WriteTo ( xmltw );
  xmltw.Close ( );

  Console.Write ( File.ReadAllText ( SignedFileName ) );
}

ODT - Alternatives & Javascript Capabilities ?

$
0
0

Hi All,

 

ODT (https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/odt/index.html) is going to be a depecated feature. So that an alternative is shared 

 

https://support.smartbear.com/testcomplete/docs/testing-with/deprecated/odt/index.html#alternatives

 

/ Define a custom class
function customClass() 
{

  // Define a class property
  var classProperty;
}

// Define a class routine
customClass.prototype.classRoutine = function()
{
  // ...
}

function Test() 
{
  var obj;
  
  // Create an instance of the class
  obj = new customClass();
  
  // Set the class property
  obj.classProperty = 41;
  
  // Call the class routine
  obj.classRoutine();
}

 

This alternative works for JavaScript too?!!

 

tristaanogre shankar_r

Unable to find the object that matches the "ObjectName_EmbeddableTextBox" item

$
0
0

Hi

My software is using Infaristics version 16.1. My TC version is 12.10. When I record a textbox control, TC can recognize the textbox. However when playing back the keyword test, TC gets an error saying "Unable to find the object..."

 

How can I solve this problem?

Access parameter variable in OnSetup

$
0
0

I created an extension with a parameter

 

<Parameter Name="SourceFileName"></Parameter>

 

Im trying ton acess the value of this parameter in onSetup event like this:

 

function MyExtension_OnSetup(Data,Parameters){

...

aqDlg.MessageDlg( aqObject.GetVarType(Parameters.SourceFileName),2,4);
aqDlg.MessageDlg( Parameters.SourceFileName,2,4);

...

return true;

}

 

As you see im testing the parameter value and data type, if im using contant value  it display both the value and type however for table variables like the one in excel it dont display the value and data type. I understand that the actual data will be evaluated in execution but at least i want to retrieve the variable name like something "KeywordTests.ProjectTest.Variables.Var3("VALUE")". 


Getting Started with Swagger

$
0
0

Greetings!

Welcome to the Swagger Community!

 

Feel free to ask any questions about and share your knowledge of Swagger Open Source tools here. We manage a set of tools around the OpenAPI Specification, like Swagger EditorSwagger UISwagger Codegen and  many others.

 

The more you contribute to the Community, the more ranks and badges you can earn. Members with the highest contribution level will have the honor of becoming a SmartBear Community Hero!

 

LEARN WITH THE COMMUNITY

All current Community members noted that one of the best options to learn the product is to consult with the Community members. So, feel free to submit your own questions. Community Leaders are looking forward to helping you!

 

 

Not ready to post your first question? Watch exclusive videos with Community Leaders, where they give great tips for new users. And, don’t forget to give them your Kudos!

 

Here are our rules - because there should always be some rules - please make sure that you don't break them. Also, I encourage you to review the Community Guide to get the most out of your time in the SmartBear Community.

 

SUPPORT TEAM

All community questions for Swagger Open Source tools are managed only by Community members who are not SmartBear employees. To get assistance from the SwaggerHub Support engineers, submit a ticket here.

 

 

TRY ALL SWAGGER TOOLS

Explore all Open Source Swagger tools on this page.

 

LOAD UI Pro - Server Motnitoring for UNIX Solaris

$
0
0

Hi,

 

We are attempting to use LOADUI PRO for monitoring our UNIX Solaris server during Performance Testing.  We have verified that SNMP is installed and that we can connect on Port 161.  However when attempting to make a connection we are encountering the following error message

 

  • Wed Nov 14 10:53:30 GMT 2018: ERROR: Unable to retrieve "1.3.6.1.4.1.8072.1.5.1.0" counter due to the following error: NO_SUCH_OBJECT

Do you know why we might be encountering this issue and how we can go about resolving it.

 

Also are there any addtional setup tasks we need to carry out when setting up monitoring on a Solaris operating system for UNIX?

 

Thanks

Deepak

"The object does not exist" even though mapping seems right

$
0
0

Hello,

I guess this error message have been discussed thousands of times already, but none of the other threads were helping me.

 

I'm creating a installer using Visual Studio and WiX. Testing is performed with TestComplete 12.30.1651.7 on Windows 7.

I've recorded the test several times, did it from scratch again. But it feels like every new build of the installer causes the tests to fail. And I've just talked about the local testing. Doing it on VMs with the help of Jenkins isn't successful either.

 

I can see the the installer process in NameMapping on Mapped Objects and Aliases, but havn't touched Aliases just to be sure. I can even highlight the installer with left click, even though the test failed beforehand. So TestCompelte sees it, but during a test run it doesn't. I've added delays of 10 secons, but even that isn't saving the test from failing.

 

Could it be that creating a new build of the installer and other related software causes some mismatch between the name mapping? And if yes, how to fix it?

 

I'm a bit tired of testing my UI, it isn't reliable at all.

 

Kind regards

Fred

JsonGenerator not recognized in external code, does not compile

$
0
0

Hi,

 

At this moment I am rewriting code that generates json body content, after reading values from an Excel file. Originally everything is written by using String operations, which makes the code horribly complicated. I want to remove this anti pattern with code generated by JsonBuilder. I did this using an external code compiler and it works (beautifully) then.

 

It looks something like this:

 

import groovy.json.JsonBuilder;
import groovy.json.JsonBuilder.*;
import groovy.json.*

public static String generateSomeContent(def travelClassValue, def productFamilyList)
def
generator = new JsonGenerator.Options().excludeNulls().build()
JsonBuilder builder = new JsonBuilder(generator)

def root = builder.productOptions {
travelClass travelClassValue
productFamilies productFamilyList
}
return JsonOutput.prettyPrint(generator.toJson(root).toString())

 If I want to call this (alike) method from ReadyApi. Unfortunatly this generates a compiler error, which I do not get when using an external compiler: 'unable to resolve class JsonGenerator.Options'

I can use JsonBuilder class and that works well in ReadyApi, but I really need to use JsonGenerator class for the option excludeNulls, otherwise I have to resort to all kind of null pointer checks - which will complicate the code again.

 

I suppose it has to do something with library imports, but I don't know which library I should import and how to do that.

I can't find similar threads on this subject, so here is my call for help...

LOAD UI Pro - Server Monitoring for UNIX Solaris

$
0
0

Hi,

 

We are attempting to use LOADUI PRO for monitoring our UNIX Solaris server during Performance Testing.  We have verified that SNMP is installed and that we can connect on Port 161.  However when attempting to make a connection we are encountering the following error message

 

  • Wed Nov 14 10:53:30 GMT 2018: ERROR: Unable to retrieve "1.3.6.1.4.1.8072.1.5.1.0" counter due to the following error: NO_SUCH_OBJECT

Do you know why we might be encountering this issue and how we can go about resolving it.

 

Also are there any addtional setup tasks we need to carry out when setting up monitoring on a Solaris operating system for UNIX?

 

Thanks

Deepak

JSON view started showing as a single line of text

$
0
0

I am getting JSON object responses from my API calls. The responses can be viewed in the JSON tab and they WERE displaying as a multi-line, indented block of data that was easy to navigate and view.

For some reason, the data has started showing as a single line of text, and scrolling sideways through a long line of data is difficult and time consuming.

I feel like this is a local setting, but I can't find it, and I don;t know what 'folding' is. (I tried all folding scenarios to no avail)

 

Any suggestions?

Error jz00l when Connecting to sybase database via groovy

$
0
0

Hi, when I connect using the JDBC Request Test Step to my Sybase DB it works (or when I use the "test connection" button).

 

When I do the same via groovy it doesn't here is the code and the logs: 

I'm not sure if it's a driver problem (I have jconn4.jar in the bin\ext folder), it's not a credential problem. I'm using ReadyAPi 2.5.0 Pro

 

import groovy.sql.Sql

def ConObj = context.testCase.testSuite.project.databaseConnectionContainer.getResourceByName('TestAutomation');
def sql = Sql.newInstance(ConObj.getConnectionString());

Logs:

ERROR: java.sql.SQLException: JZ00L: Connection failed. Examine the SQLWarnings associated with this exception for the following reason (s):
java.sql.SQLException: JZ00L: Connection failed. Examine the SQLWarnings associated with this exception for the following reason (s)
at com.sybase.jdbc4.jdbc.ErrorMessage.raiseError(ErrorMessage.java:768)
at com.sybase.jdbc4.tds.Tds.processLoginAckToken(Tds.java:5356)
at com.sybase.jdbc4.tds.Tds.doLogin(Tds.java:725)
at com.sybase.jdbc4.tds.Tds.login(Tds.java:579)
at com.sybase.jdbc4.jdbc.SybConnection.tryLogin(SybConnection.java:422)
at com.sybase.jdbc4.jdbc.SybConnection.handleHAFailover(SybConnection.java:3335)
at com.sybase.jdbc4.jdbc.SybConnection.<init>(SybConnection.java:348)
at com.sybase.jdbc4.jdbc.SybConnection.<init>(SybConnection.java:253)
at com.sybase.jdbc4.jdbc.SybDriver.connect(SybDriver.java:232)
at com.eviware.soapui.support.GroovyUtils$DriverProxy.connect(GroovyUtils.java:151)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
at groovy.sql.Sql.newInstance(Sql.java:279)
at groovy.sql.Sql$newInstance.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at Script7.run(Script7.groovy:10)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:98)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:83)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:158)
at com.eviware.soapui.impl.wsdl.panels.teststeps.DebuggableProGroovyScriptStepDesktopPanel$RunDebugAction$1.run(DebuggableProGroovyScriptStepDesktopPanel.java:177)
at java.lang.Thread.run(Thread.java:748)


Command line gives 'proxySelector == null' how does one stop this from running?

$
0
0

I have a gs that works fine when i run manually in windows, but when i run from centos i get this most irritating message

here is my code

 

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.Keys;
import org.openqa.selenium.remote.DesiredCapabilities;

path = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "driverPath" )
drive= com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "driver" )
fpath= path+drive
System.setProperty('webdriver.chrome.driver',fpath)


url = "https://www.google.com"

ProxySelector proxy = ProxySelector.getDefault()
ProxySelector.setDefault(proxy)

ChromeOptions chromeOptions = new ChromeOptions()
chromeOptions.addArguments("--headless")
chromeOptions.addArguments("--window-size=1024x768")

WebDriver driver = new ChromeDriver(chromeOptions)
WebDriverWait wait = new WebDriverWait(driver,30)
driver.manage().window().maximize()

driver.get(url)

driver.findElement(By.xpath("//input[@title='Search']")).sendKeys("hello")

driver.findElement(By.xpath("//input[@value='Google Search']")).click()

driver.close()
driver.quit()
return;

I run it the following way

./testrunner.sh -G driver=chromedriver -G driverPath=/opt/drivers/ -G capturePath=/opt/captures/ -s Regression -c "Open Google" /opt/projects/opengoogle.xml

I have even added this in the .vmoptions file

-Dsoapui.browser.disabled=true

But yet i am still getting

Driver info: driver.version: ChromeDriver
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573)
        at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
        at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
        at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80)
        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
        at Script1.run(Script1.groovy:27)
        at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:90)
        at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141)
        at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47)
        at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138)
        at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46)
        at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:128)
        at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:76)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:594)
        at com.eviware.soapui.tools.SoapUITestCaseRunner.runTestCase(SoapUITestCaseRunner.java:573)
        at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:405)
        at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:202)
        at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137)
        at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112)
        at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122)
Caused by: java.lang.NullPointerException: proxySelector == null
        at okhttp3.Address.<init>(Address.java:79)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.createAddress(RetryAndFollowUpInterceptor.java:206)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:112)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
        at okhttp3.RealCall.execute(RealCall.java:77)
        at org.openqa.selenium.remote.internal.OkHttpClient.execute(OkHttpClient.java:103)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:102)
        at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
        ... 30 more

How does one either disable this proxy call, or make it not null. I see a few people are having the same issue. I'm using the right versions according to maven repo

 

17:55:20,663 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/selenium-server-standalone-3.141.5.jar] to extensions classpath
17:55:20,664 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/postgresql-42.2.2.jar] to extensions classpath
17:55:20,664 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/client-combined-3.141.5.jar] to extensions classpath
17:55:20,664 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/client-combined-3.141.5-sources.jar] to extensions classpath
17:55:20,664 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/byte-buddy-1.8.15.jar] to extensions classpath
17:55:20,665 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/okhttp-3.11.0.jar] to extensions classpath
17:55:20,665 INFO  [SoapUI] Adding [/SmartBear/SoapUI-5.4.0/bin/ext/okio-1.14.0.jar] to extensions classpath

Note guava-25.0-jre.jar is in the lib directory not the ext

PRETTY please can you tell me how to get this working?

 

thanks

REST GET service working in Postman but not in SoapUI

$
0
0

HI,

I have a GET request which works fine with Postman and fetches all 200+ records JSON response successfully. When tried the same in SoapUI it shows StatusCode 200 but doesn't fetch any details and just shows following.

{
"start" : 0,
"total" : 0,
"rows" : [
]
}

 

No error is displayed, also I didn't notice any configuration changes either.

Displaying Markdown Files

$
0
0

The SwaggerHub code generators create .md files as documentation.  What's an easy way to display a .md file formatted on Windows?

FindFiles not working

$
0
0

This line of code is not finding a file and returning null.

 

foundFiles = aqFileSystem.FindFiles("C:\\Temp\\" , "*.rxi");

//I'm using javascript, hence the escape \

 

Here is a picture of a file in that folder:

FileInFolder.PNG

 

That code is practically copied and pasted from here:

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfilesystem/findfiles.html?q=findfiles 

 

I also tried a folder on my desktop with the same results. 

 

Anyone had this issue?

 

Any help would be greatly appreciated.

Running TestComplete on Jenkins through Command Line

$
0
0

Hello,

 

I'm having an issue trying to execute a TestComplete suite on Jenkins through a Windows Batch Command build. However, when simply running only the TestComplete or TestExecute execution files, Jenkins hangs once it reaches that point and never finishes and I have to end up aborting the test all together.

 

I understand that there is a TestComplete plugin and it is available to me and the suite works perfectly fine with that plugin, but the purpose of my project requires an execution through command line. I have also tried running the long and extensive command line argument: ("C:\Program Files (x86)\SmartBear\TestExecute 12\bin\TestCompleteService12.exe" //LogonAndExecute //lDomain: "" //lName: "jenkins" //lPassword: ******** //lTimeout: "-1" ....) and that also fails to work. I have verified the service is running on that slave machine and that the license server is available.

 

Thank you.

Viewing all 20073 articles
Browse latest View live