Development

I have written a code to launch my app and click on the element, the app is launching but after launching when it is trying to click, I am getting an error which I am not able to understand why.

Error

Feb 19, 2019 2:54:42 PM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C
Exception in thread “main” java.lang.NoClassDefFoundError: net/sf/cglib/proxy/MethodInterceptor
at pageobjects.HomePage.(HomePage.java:12)
at pages.SignUp.main(SignUp.java:22)
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.MethodInterceptor
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 2 more

This is the class code

package pages;

import java.net.MalformedURLException;
import java.util.concurrent.TimeUnit;

import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import page_objects.Home_page;

public class SignUp extends MobileCap
{

public static void main(String[] args) throws MalformedURLException
{
// TODO Auto-generated method stub

AndroidDriver<AndroidElement> driver = Capabilities();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

Home_page h = new Home_page(driver);
h.SignUp.click();

}
}

I’m new to jmeter and would appreciate if someone could help me out on this.
I recorded a script in jmeter from Login to Logout using firefox as my browser. When I checked the input parameters, it is sending out username, password and an encrypted password (AES) before it can log in into the site.
In Welcome.do page it has the code for password encryption (AES/256). In the loginaction.do it returns the parameters along with the masked and encrypted pw (e.g username = testuser1, password = ******, encrypted_password = uicbaicbqibvie20910).
I already tried the boundary expression and it is able to take the encrypted_pw from welcome.do but I noticed that it’s not the same as the encrypted_pw(returned from server) when user clicks on Sign In button.

How do I masked the pw so that the real pw will not be logged in server.log?
How will I get the returned encrypted_pw from server?
When I checked the server.log, I also noticed that it seems like jmeter is not able to connect to jboss web server for pw authentication. Is there a configuration that I need to add in order to make the needed connection?

Since it is unable to successfully pass the authentication stage, it is returning a Session Timeout Error and user is unable to login.
So, I try logging in from the website itself and it is able to successfully authenticate my test user account.
What approach should I do in order to resolve this issue? 
Thank you for replying.

API testing is a critical aspect of software testing as APIs serve as the communication channels between different software components, allowing them to interact and exchange data. API testing not only involves validating the functionality, but also the performance, security, and reliability of APIs to ensure they meet the intended requirements and perform as expected.
The post The Only API Testing Checklist You Need in 2024 appeared first on Codoid.

In this episode, Jake and Surma chat about web components. Why they were invented, what they’re useful for, and how…

We are currently testing out DevOps but one thing that I can’t do is have MSTest hit our internal server (which is housed in Azure) that contains selenium and such.
DevOps of course is external.
I am no networking guru, but is there a way to build a connection between the two?
Or do we have to make our selenium server outward facing?

I have the following code

driver.find_element_by_id(“Element_ID”).send_keys(str(sheet.cell(row=r, column=2).value))

Values is taken from excel, but instead send_keys, I want to use document.getElementsByName script.

How can I adapt the getElementsByName script for my situation?

I’m wondering what some other options are for accessing the test automation framework dependencies from my test classes.
Right now I have a layered architecture:

Framework layer (contains all shared code for accessing deployed services)
Harness layer (builds the classes and dependencies within the framework. Ie handles DI)
Test layer (controls the flow of the tests via the objects created in the harness)

I’ve got a test base class in the harness layer that has access to the various API, database, and UI classes needed to run our tests. So using inheritance to provide access to these dependencies.
A sample test class would look like:
public class MyTestClass : TestBase
{
[Test]
public void sample_test()
{
APIs.MyAPI.GetSampleEndpoint(); // APIs is an inherited field in test base
}
}

I feel inheritance is the best way to go about the issue of dependencies within a test class. The downside is managing the wrapping class that the “APIs” field is attached to.
Are there better options to go about managing a large list of dependencies in a clean way?

Selenium webdriver is not able to pull up the chrome dev tools. From what it looks like puppeteer could do this, but will it give me a way to save the interactive timeline report? Can puppeteer be run in a headfull mode? in an incognito tab? I saw the developers page but no specific examples