Libraries & Frameworks

I am trying to test a standalone application on the Citrix platform using JMeter. I have installed the Citrix receiver as well as the JMeter ICA plugin for the same. But I am not able to launch the Citrix web form through JMeter.

I tried recording the events using Badboy, but the script is erroring out when trying to export to JMeter as it fails to recognize ‘Click’ and ‘Execute’ requests captured in the Badboy script.

Any help on this would be highly appreciated.

While opening JMeter 5.1v in log I came across an issue

i.e WARN o.j.r.Plugin: Unable to load class:
com.atlantbh.jmeter.plugins.oauth.OAuthSampler
java.lang.NoClassDefFoundError:
org/apache/jmeter/protocol/http/sampler/HTTPSampler2 I had added oAuth
sampler plugins in lib/ext also

please suggest me to overcome this issue

I have application which has extension as .msc, I tried it with python
I also ran winappdriver before executing this script. I have seen demo codes on some blogs which uses .exe file extension for the app like calculator or notepad, but nothing around .msc. And similar question around this same problem is unanswered here https://stackoverflow.com/questions/67823892/appium-winappdriver-unable-to-automate-jnlp-applications-the-specified-exec
Like
import time
from appium import webdriver

desired_caps = {}
desired_caps[“app”] = “C:\Desktopvit extendedvit.msc”
desired_caps[“platformName”] = “Windows”

driver = webdriver.Remote(“http://127.0.0.1:4723”, desired_caps)

time.sleep(4)

Earlier I was getting below error but got rid of this when I added additional capabilities as appWorkingDir and deviceName-

Failed to locate opened application window with appId “xxx” and process “xxx”

but now stumbled upon getting this error –

The specified Executable is not a valid application for this OS Platform

Electronic signature plugin for Vue.js 3 Continue reading on Vue.js Feed » Source: Read More

I’m using Selenium in my Groovy application as a Maven dependency. Now I’m looking for a way to log the used Selenium Version to the console.
I tried this:
BuildInfo info = new BuildInfo();
def infoString = info.toString();

But infoString only contains:
“Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown'”.
I also tried reading the version from the classpath of the project and though this works in a Java project in a groovy project the classpath no longer contains the used selenium version.
In a java project, the infoString also contains the used version, revision etc.
Any help would be very much appreciated!

I am working on a mobile project, but I got stuck with it, as I cannot Locate any element for this Login pop-up Box through UIAutomator Viewer, the only elements being displayed by the UIAutomator viewer are the web Elements that are beneath the Login pop-up box.

How can I go about identifying the Username, Password input boxes, Sign In button and any other element(s) on this Login pop-up box.

I wonder if there is a way to assert that XML response does NOT contain any other tags than those expected?
I am using plain http requests (no WSDL, schema validation, not SOAP, not REST) and the application protocol is custom for a particular application (POS systems).

I was thinking (and started) of creating a custom SOAPUI library with script that contains:

a reference table
a function that checks if returned tag is on the list (in reference table)

if the returned tag is not on the list, then assertion fails

So, my question is: is there a better way to validate that?
The response XMLs have a lot of fields, some mandatory, some optional and some conditional depending on other (within same request).

While testing Hybrid android app in Appium, a change of context from NATIVE to WEBVIEW is expected. But, the name of the WEBVIEW context does not remain same at all instance of testing. However, it is one of the follwing:

WEBVIEW_undefined
WEBVIEW_{package_name_of_application_under_test}

Say, I’m testing a Hybrid app with package name

com.webviewbrowser

In this case, the context name of the WEBVIEW switches randomly between the following two at every instance

WEBVIEW_undefined
WEBVIEW_com.webviewbrowser

When I use the following in my code,
driver.context(“WEBVIEW_com.webviewbrowser”)

Miserably, I actually receive the context name WEBVIEW_undefined sometimes and NosuchContextException is thrown.
Why does this happen even when no other app is running at the time of testing?
How do I get rid of this issue?

I’m testing a web application in which all web controls are loaded dynamically using AJAX. I have a test script project in java Eclipse IDE.

Here is my problem. If, for example, I am debugging a test script for my last module, I have to go through all my dependent modules first and execute each one’s script before I can debug my last module. It is a very time consuming and boring task to execute the scripts for previous modules every time.

Is there a way I can bypass my dependent module test script execution in Eclipse?

I’m starting to get frustrated with Chrome emulator:
Using JAVA + Selenium + TestNG I’m testing many of our web applications which runs on few browsers. On mobile browser we have a special design – and NOW i’m trying to test it with the Chrome emulator but without great success. I can only load a page and check the elements, BUT I CAN’T click() on it (or other interactions with Actions object).

I’ve tried a simple :

someElement.click()

and

Actions action = new Actions(driver);
action.moveToElement(someElement).click().build().perform();

and both doesn’t work. The run just stays there until the test case gets time out.

Any ideas?
Thanks

I’m writing automation script for a page in which there is a text box. The scenario is as follows:

I click on the text box and enter a value which will throw error
I clear the text box and add valid value and click on confirm button
Then I see the answer provided in the text box as an answer bubble
I click on the edit button to change the answer bubble back into text box
I clear the text box and add new value

In the last step where I need to clear and add new value to the text box, what happens is that the text box is not cleared even when the code is there to clear it. In step 2 it does clear the text box.
public void enterElectricityReading(String electricReading) {
WebDriverWait wait = new WebDriverWait(driver, 60);
wait.until(ExpectedConditions.elementToBeClickable(electricityField));
electricityField.clear();
electricityField.sendKeys(electricReading);
}

Can someone help me to understand why does the clear code is not run and value is not cleared?
At a certain period when the test is run then the clear method works. But it is not reliable.

Precondition: Need To Login Application first, then I can send my API request to the server, so who can set this thing in Jmeter?

Current: I am getting error as

“{“Message”:”Request was not made within the context of a valid
session.”,”Data”:”ErrorId: “}”

I am repeatedly getting a very annoying problem when automating my test cases using Selenium/C# in Visual Studio.

This test is designed around validating search criteria text. In order for me to test each criteria, I have to:

Navigate to the the app’s homepage
Click on the search app
On the search page, enter valid criteria
On the search results page, assert that the search criteria appears in text as what was searched for.
Repeat steps 1-3 with different search criteria.
Verify all search criterias on the results page appear as they should.

When I get to step 5 (navigating back to the homepage), I get the following exception:
“threw exception:
OpenQA.Selenium.StaleElementReferenceException: Element is no longer valid”

I had gotten this before and got around it by adding a “wait.Until(ExpectedConditions.ElementIsVisible” command- not entirely sure why this worked.

However, the above solution is becoming very tedious as it requires me to enter an instance for EACH element that I call to, which will end up being x30 more.

Any help will be greatly appreciated.

I was following blazemeter tutorial on how to run Jmeter script from the command line (cmd.exe in Windows10 OS). I’m trying to pass environment variable to the Jmeter ${__env} (according to this page) custom function, using Jmeter script from the command line. Below is the screenshot of the env function in Jmeter UI

I’ve also tried without quotes ${__env(password)} and also using JSR223 PreProcessor

vars.put(“password”,${__env(password)});

but that didn’t work either.

Below is my command line

set password=MyPassword123
jmeter -n -t C:WorkJmeterMyScript.jmx

But Jmeter fails to execute my test plan

Creating summariser <summary>
Created the tree successfully using C:WorkJmeterMyScript.jmx
Starting the test @ Fri Sep 28 16:45:38 EDT 2018 (1538167538606)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary = 2 in 00:00:01 = 3.1/s Avg: 250 Min: 1 Max: 499 Err: 1 (50.00%)
Tidying up … @ Fri Sep 28 16:45:39 EDT 2018 (1538167539431)
… end of run

Is it possible to read environment variable using Jmeter? How to properly set it up. Has anyone able to achieve this before? Thanks a lot people!