Closed SQALeaders closed 4 years ago
I didnt give the TestNG XML here you go
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="All Test Suite" parallel="tests">
<listeners>
<listener class-name="UtilityClasses.ListenerImp">
</listener>
</listeners>
<test name = "Chrome">
<parameter name = "OBrowser" value="chrome" />
<classes>
<class name="TestCaseClasses.VerifyValidLogin"></class>
</classes>
</test>
<test name = "firefox">
<parameter name = "OBrowser" value="firefox" />
<classes>
<class name="TestCaseClasses.VerifyValidLogin"></class>
</classes>
</test>
</suite>
@SQALeaders - Please help create a simple standalone (which doesn't require selenium WebDriver) test that can be used to reproduce the problem. It's not clear as to what is the issue here. Its not going to be possible for us to debug your selenium issue (It looks like a genuine Selenium problem)
Please comment once you have a simple standalone example. Closing this issue
Please dont close any issues before getting clear detail
This is not a selenium issue. Please note if I don't use DataProvider Parallel test works fine. The issue happens when I use data provider. I don't understand why you ask me to create simple standalone. Please keep it open so if some one knows they will answer. Dont close any issue without resolving I dont understand why you guys close in 20 minutes.
@SQALeaders -
Please note if I don't use DataProvider Parallel test works fine. The issue happens when I use data provider.
There are a lot of tests within the TestNG codebase as unit tests that tests out various aspects of data provider and there have been no failures on any of them.
I don't understand why you ask me to create simple standalone.
How else do you expect someone to reproduce the problem ?
Please keep it open so if some one knows they will answer.
I am one of the committers of the codebase. Not sure who are you expecting here to answer.
Dont close any issue without resolving
There is nothing in this issue that can pinpoint the problem to TestNG.
I am re-iterating, please share a simple standalone test sample that can be used to reproduce the problem. Once that is done, I dont have any issues in re-opening the issue and fixing it if there is a problem with TestNG. I will be more than happy to do that. But without a sample, there's no point in keeping an issue open.
I already gave a full code to reproduce
@SQALeaders - Do you want to help me understand as to how do I execute that test ? The html page against which that selenium test is created is not available.
The code that you shared cannot be executed on its own. I am re-iterating once again.
Please provide a simple standalone example (That does not use anything apart from TestNG) to reproduce the problem.
Echoing what @krmahadevan said: please provide a problem statement without Selenium.
Thanks.
I don't understand what is the problem statement and how to give without selenium. If you need a concise description of a problem then go through the below What I am trying to achieve is a parallel cross-browser test using TestNG.xml file, when the class given in TestNG.xml file has DataProvider method. Expected behaviour: WHen dataprovider loop each data, each of them have to go to each browser. example if I have two data in my excell file both data should pass to each browser Actual behaviour is Both browser get launch same time which is right but first data goes to chrome browser and second data goes to Firefox browser. So chrome browser doest get second data to login second time. Other hand Fire browser get login with second set of login cresentail and doesnt use the first credentials from Excel sheet.
Also please note if you are fixing, we need this behavior when we testing the login scenario for cross-browser testing. Because the same credentials can't be used for all the browsers, so the first browser should take the first set of data from the data provider and the second browser should get the second credential and so on. In that case, this behavior is expected behavior, I mean the right behavior. I dont know which gets priority.
You can close this, I believe two sessions cant have one login credential, might be browser blocking this
@SQALeaders - This issue was already closed. But you went ahead and opened another duplicate of the same thing, because
selenium-users@googlegroups.com
So please go ahead and close off https://github.com/cbeust/testng/issues/2226. You are free to create a new issue and comment and ask for either of these 2 issues re-opened, once you have a sample that can reproduce the problem using only TestNG and nothing else.
You can close this, I believe two sessions cant have one login credential, might be browser blocking this
And this is exactly why we've been asking you to provide a reproducible test case without Selenium.
Because as long as your problem statement includes Selenium, we cannot be sure whether it's a TestNG or a Selenium bug.
And maybe it's not a bug at all.
When creating Data-driven framework with the TestNG dataProvider, Not able to do cross-browser testing in parallel with the TestNG XML file. If I remove Parallel works fine. But if I try to do parallel TestNG provide one data for browser then second data for the next browser and throws an error
TestNG Version - 7.1.0 Expected behavior If I have 10 data in excel file TestNG should run all 10 for each browser. Example if I run Chrome and Firefox both browsers should run all 10 data
Actual behavior TestNG gives first data for Chrome, second data for Firefox and throw error "org.openqa.selenium.ElementNotInteractableException: element not interactable".
Is the issue reproductible on runner?
Test case sample Testcase to verify valid login
The base class:
Page Class
XML (TestNG.xml)
Error message: