Development

I’m working on a mobile automation task where I need to run test suites in parallel for 3 different iOS apps. Each test suite has its own testng.xml with a section configured to run on a device.

I tried mvn clean test -Dthreads=3 -Dsuites=full path 1 to the suite, full path 2 to the suite, full path 3 to the suite

Here threads and suites are properties defined in pom.xml.
It looks like the suiteXMLFile in pom.xml cannot take absolute path. It works fine, when I do: mvn clean test -Dthreads=1 -Dsuites=src/test/resources/testng.xml.

How do I run the suites on all 3 devices in parallel with the test suites lying in 3 different folders pointing to 3 different devices?

Appreciate help.

I am new to automated testing. I am using C#, Selenium and Chrome 99 with the correct driver. I am trying to get to an anchor tag on the page.
Here is my code that is not working,
driver.Url = “abc.com”; //cant display the real one
driver.FindElement(By.XPath(“//a[@href=’ubEntryQueue.aspx’]”)).Click();

The error I am getting:
OpenQA.Selenium.NoSuchElementException
HResult=0x80131500
Message=no such element: Unable to locate element: {“method”:”xpath”,”selector”:”/a[@href=’ubEntryQueue.aspx’]”}
(Session info: chrome=99.0.4844.74)
Source=WebDriver
StackTrace:
at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.WebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.By.<.ctor>b__11_0(ISearchContext context)
at OpenQA.Selenium.By.FindElement(ISearchContext context)
at OpenQA.Selenium.WebDriver.FindElement(By by)
at CLQTesting.WQ.ValidateWQDisplays() in C:QACLQTestingWQ.cs:line 30

This was my last attempt
Here is what I am trying to get to

This is my code:

package dateTime;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;

public class GetCurrentDateTime {

public static void main(String[] args) {

LocalDate localDate = LocalDate.now();
String date = DateTimeFormatter.ofPattern(“yyyy/MM/dd”).format(localDate);
log.info(“The date is “+date);
vars.put(“currentDate”,date);

}

}

I tried above code in beanshell, JSR223 pre-processor or post processor but not able to use it further.

I’m working in multiple browser testing. It was working code with chrome browser. Recently I have installed “Install-Package Selenium.WebDriver -Version 4.0.0-alpha04”.
MSedge Chromium and chrome working in setup method, But while navigate/return back to actual [Test] test method encountered the below error.

Error:Message: System.TypeLoadException : Could not load type
‘OpenQA.Selenium.Internal.IWrapsElement’ from assembly ‘WebDriver,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’

Is this dll/package confused
[SetUp]
public void Setup()
{
string Browsername = “Chrome”;
switch (Browsername)
{
case “Chrome”:
driver = new ChromeDriver();
}
}

[Test]
[Obsolete]
public void XXXX()
{
try
{
driver.Navigate().GoToUrl(UrlList.XXXX_Login);
driver.Manage().Timeouts().ImplicitWait (TimeSpan.FromSeconds(200));
driver.Manage().Window.Maximize();
Login login = new Login(driver);
login.PerformLogin(Login.email_id1, Login.pswd1);
}
}

I am attempting to click a save button but Selenium (with Python) is having issues. I keep getting the error, “Message: no such element: Unable to locate element”
Here is the HTML
<input type=”submit” name=”action[save]” class=”FixedRight SPSubmitRequest button save-button disabledsubmit” value=”Save”>

And the XPath
//*[@id=”spsisFunctionJSAutoFormID12″]/table/tbody/tr/td[3]/input

I have attempted the following to no avail
driver.find_element_by_xpath(‘//*[@id=”spsisFunctionJSAutoFormID12″]/table/tbody/tr/td[3]/input’).click()

driver.find_element_by_class_name(‘FixedRight SPSubmitRequest button save-button disabledsubmit” value’).click()

driver.find_element_by_xpath(‘//button[@name=’Save’].click()

None of these work and all produce the same error

Getting error as 2024-03-06T14:40:10.8848644Z jmeter -g Results.jtl -o htmlReport
2024-03-06T14:40:10.9326661Z ========================== Starting Command Output ===========================
2024-03-06T14:40:10.9654622Z ##[command]”C:Windowssystem32cmd.exe” /D /E:ON /V:OFF /S /C “CALL “D:a_temp6ddde4de-8a4f-43bd-873a-a69bbf34b8cd.cmd””
2024-03-06T14:40:12.6419288Z An error occurred: Cannot read test results file : Results.jtl
2024-03-06T14:40:12.6858284Z errorlevel=1
2024-03-06T14:40:12.6863140Z Press any key to continue . . .
2024-03-06T14:40:12.7701636Z ##[error]Cmd.exe exited with code ‘1’.
In Azure Pipeline

could anyone please help me