Libraries & Frameworks

I’m running into an issue with getting the traffic from a WCF-based Windows desktop client to show up in the JMeter recorder – and I’m hoping someone out there might be able to point me in the right direction.

Complicating things a bit, I’m not working directly with the developers of the system, but rather for one of their customers – which somewhat limits my access to some of the information and expertise I would otherwise expect to have. The client runs over WCF with a binding to an HTTPS endpoint on Azure.

I have JMeter running on the same box as the client. I have the JMeter Proxy Server working and the ApacheJMeterTemporaryRootCA.crt in place and working. The client doesn’t have it’s own proxy settings, but does appear to be honoring useDefaultWebProxy=”true” (as indicated by the client failing with SSL security warnings when the temp cert isn’t in place). However, when I exercise the client with the HTTP(S) Test Script Recorder running, none of the traffic to and from the client ever shows up in the recorder. When I use a browser under the same setup, the traffic is getting recorded as expected.

Being able to get the recorder working is vital because I don’t have access to enough information about the client’s protocols to try building out tests for them manually (and I suspect it may prove outside of my skillset, given my very limited experience with WCF).

Any useful solutions, suggestions, tips, or pointers would be GREATLY appreciated!

(I’m posting this question in XXXXX to maximize my chances of getting the right answer quickly. If this type of cross-posting is frowned upon, I apologize for any inconvenience.)

Best,

Justin

“If you can’t tell me what you tested, you might as well have not tested.”

I have designed a case to wait for specific model name in GET response and then POST data. It is tested and is working fine when only 1 user and 1 loop are set. When the specific model name is found, then proceed to deploy the model.
JSON Extractor
$..valid_model_list[?(@.model_name =~ /.*Model-Test-${variable}-${counter}-v1-8k/i)]

While Controller
${__jexl3(“${modelnameresult_matchNr}” != “1”,)}

However, when I ramp up the test to use 2 users and 2 loops. The result isn’t as per expectation.

Question 1: Why JMeter isn’t running the request in sequence when multiple users and loop are set?
How do I design it in a better way to avoid false-positives in results?
Question 2: The GET (TrainedModelsList) constant timer is set to 1 minute and expectation is that it continues running till the end of the test. It seems it just run to a certain period and stopped. What type of timer should be used in this case?
JMeter deployed these model successfully
Model-Test-2022-02-28T09:46:40784-0001-v1-8k
Model-Test-2022-02-28T09:46:42785-0002-v1-8k
Model-Test-2022-02-28T09:46:44784-0003-v1-8k
Model-Test-2022-02-28T09:46:46783-0004-v1-8k

JMeter start deploy the model and fail although these models are not yet found:
Model-Test-2022-02-28T10:02:51745-0006-v1-8k
Model-Test-2022-02-28T10:18:18831-0007-v1-8k
Model-Test-2022-02-28T10:34:21111-0008-v1-8k
Model-Test-2022-02-28T10:50:24376-0009-v1-8k

Updated with view result notes where the problem occurred at second loop:

Serverless computing is changing how we see cloud computing and Software Development Services. It takes away the tough job of managing servers, allowing developers to focus on creating new apps without worrying about costs or the resources needed to run them. This shift gives businesses many benefits they become more flexible, easier to grow, and
The post Exploring Serverless Architecture: Pros and Cons. appeared first on Codoid.

I am writing this query in HP ALM 11.52 and facing the error
“Conversion failed when converting the varchar value ‘userid’ to data type int”

Query is

select *
from Testcycl
join Audit_Log on tc_test_id = au_entity_id

I know the userid is a string and it is unable to convert it to data type int. How can we resolve this error in the HP ALM Query builder?

On my application payment gateway is Braintree, I need to automate it and face some difficulties when I am automating it, the major problem is I cannot send credit card details using xpath, I research some tutorial for solve this and not find any good resources, please advise and guide me how I automate payment form using selenium

If I go to appium.io I find a download link at github.com/appium/appium-desktop for stable 1.13.0 at https://github.com/appium/appium-desktop/releases/

There also exists a github.com/appium/appium repository at https://github.com/appium/appium/releases with current stable 1.14.1

On my Mac, I am running Version 1.14.0 (1.14.0.20190705.4) according to the Appium→About Appium menu, the main window shows the button Start Server v1.14.0, and starting a server shows Welcome to Appium v1.14.0 in the log, but selecting Check For Updates in the menu tells me that Appium Desktop v1.13.0 is available from May 5, which includes an update to Appium version 1.13.0.

How do I resolve these differing version numbers and the apparent downgrade?

I know that having interdependent tests is a bad idea. But, then my question is:
What are the valid usecases of dependsOnMethods which TestNg team provided ?
In other word, under what conditions i can have interdependent tests ?

AI-driven QA advisory and consulting services are reshaping quality assurance, moving beyond traditional testing to deliver proactive, intelligent solutions. From predictive analytics and automated testing to enhanced compliance and security, I discovered how integrating AI into QA processes enables companies to make the most of their business.
The post Crafting an AI Roadmap: Defining Your AI Journey with Expert Advisory Services  first appeared on TestingXperts.

Artificial Intelligence (AI) can feel far from what it means to be human. It mostly focuses on thinking clearly and working efficiently. As we use technology more every day, we want machines to talk to us in a way that feels natural and kind. Artificial empathy is a new field aiming to close this gap.
The post What is Artificial Empathy? How Will it Impact AI? appeared first on Codoid.

I’m working on test automation for a big project and I’m using Phpunit and as a server I’m using Selenium WebDriver.
In the source code I’m using asserts like :
$this->assertContains(‘Project Title’, $this->webDriver->getTitle());

I’m wondering how can I add the if-else condition, that when it’s false I can have a popup or to stop the test.

Now in the application that i have to automate, there’s a jhtml Area element. This is a sample jhtml area: http://pietschsoft.com/demo/jhtmlarea/.

So the jhtml area has two elements for the text you enter. I have tried entering text using the text area tag. But doesn’t work out. Any ideas?

I’m facing a problem when I try to execute a UFT script using a VBScript file to call it. The code inside the .vbs file is below:

dim uft
Set uft = CreateObject(“QuickTest.Application”)
uft.Visible = False
uft.Launch
uft.Open “R:dataHPCJobsSpoolsubmit_2017.06_CAEDevGomputeBenchAppuft_script”
uft.Test.Run Nothing, True, False
uft.Quit
Set uft = Nothing
MsgBox “Test done”

Inside the UFT script I have 7 actions. When I double click the .vbs file the first action execute without problems, but when arrives in the second action start my problem: in all my actions (except the first one) has a code to create a .txt file. When the script create the first one (in the second action) it just stop to run all the rest of the second action and jump to third action to create the second .txt file, doing this for the rest of the actions.

I don’t know how this .vbs script are really doing and why it do not following the order of the script, because when I run inside UFT all works perfectly. Can anyone know what is the cause of this problem?

Thanks and regards.

I am trying to test a web portal using Selenium and Python. The problem is, I am unable to get around an error, in other words, I am unable to catch the alert.

Scenario:

Search for a user, if the user is not found, the website throws an error. I have a list that contains valid and invalid users to perform the search upon. When the search is successful, there are a few links I need to click to get to the user. If the user is not found, the links won’t be displayed and an error is displayed instead. The problem is when I search for an invalid user, the code is looking for the links that are displayed when the a valid user is displayed.

Code:

from selenium import webdriver
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.alert import Alert
from selenium.common.exceptions import NoAlertPresentException
import time

browser = webdriver.Chrome() # type: WebDriver is Chrome
browser.get(“https:URL”)

if option == ‘number’:
nums = [‘111’, ‘123’, ‘456’]
searchbox = browser.find_element_by_id(“searchPattern”)
noUser = browser.find_element_by_xpath(‘//*[@id=”includeError”]/div’)
try:
for num in nums:
searchbox.send_keys(num)
browser.find_element_by_xpath(‘//[@id=”User”]/input[2]’).click()
time.sleep(4)
user_links = [‘photos’, ‘message’, ‘mails’]
for url in user_links:
if url in user_links:
browser.find_element_by_link_text(url).click()
time.sleep(4)
elif url not in user_links:
print “No users found”
browser.switch_to_window(browser.window_handles[0])
time.sleep(5)
browser.find_element_by_id(‘searchPattern’).clear()
except noUser:
print “no users”

I want to add Jmeter tests as build steps in TeamCity server. If tests fail, a build will not complete. Please share how to do it.

I am currently using Jmeter for testing a Rest API running different scenarios/threads on a standalone machine. My intention is to put these tests in our existing CI/CD that has TeamCity. When we deploy a new release, Jmeter tests will run as automation tests and if any test fails, then the build will roll back and generate failure reports.

So we send out clients our test cases to help them with their UAT process and ensure they are testing our integrations properly.
Is there a TCMS on the market that actually exports test cases with the attached screenshots? Everything I see is a CSV file.

enter image description here

hi all
thanks for reading my question.
I tried to automate some of my work.
I tried to get the path of Add button using xpath finder
I found three links below. I tried to click on the add button but its not working.
The curser is in the first name box.
Below my code is there.
Please help me to click the Add button.
#driver.find_element(By.XPATH,”//div[@class=’content col-center’]/..//input[@name=’Add’]]”).click()
driver.find_element(By.XPATH,”//body/div[@id=’contWrapper’]/div[@id=’ContContent’]/div[@id=’pageContent’]/form[@id=’viewAllSales’]/div[@class=’container’]/div[@class=’content col-center’]/div[5]/..//input[@name=’Add’]”).click()
#driver.find_element(By.XPATH,”(//input[@name=’Add’])[1]”).click()
driver.implicitly_wait(60)

Game testing, including black box testing and unit testing, is a key part of the game development process. It helps to make sure that a video game is fun, works well, and offers a great user experience in that particular game. This testing covers many things such as the main features, graphics, performance, and safety.
The post Exploring the Different Stages of Game Testing appeared first on Codoid.