Comments (7)
please suugest for this
from testng-eclipse.
do you have the same issue if run the test with build tool like maven or gradle?
from testng-eclipse.
from testng-eclipse.
accessible: module Tryagain does not "exports Tryagain1" to module org.testng
This looks like there is Java modules involved.
@v91negi - Do you have a module-info.java
in your project somewhere? What happens when you delete this file and try again?
from testng-eclipse.
from testng-eclipse.
Thank you ,after deleting module info file. Issue resolved and test case pass, as below:-
[RemoteTestNG] detected TestNG version 7.7.0
300
160
450
PASSED: Tryagain.files.sumValidationtest.sumofCourses
===============================================
Default test
Tests run: 1, Failures: 0, Skips: 0
===============================================
===============================================
Can you share more details about this, why module_info.java causing error?
from testng-eclipse.
@v91negi - If you have a module-info.java
then it means that you are trying to leverage the modularisation capabilities that JDK9 and above provide. modules are basically a higher level grouping on top of package
. Until JDK8 one could group classes into a package
and there was no further grouping that was possible. JDK9 introduced the notion of modules
wherein you could basically group a bunch of package
into module
.
I suggest that you read a bit about module
so that it clears out the concept. After that the error message should be self explanatory. In a nutshell, you defined a module-info.java
and so Java started expecting that you would tell which all packages are to be visible to the outside world (and to TestNG since TestNG also would be part of the outside world). Since nothing was visible and since TestNG is trying to access your packages, Java flags this as a problem.
from testng-eclipse.
Related Issues (20)
- Getting Error while installing testNG using IBM RAD9 HOT 1
- does not working me in my eclipse HOT 1
- xml files are not visible after testng is downloaded
- not getting TestNG in RunAs. HOT 2
- TestNG suggestion not working HOT 2
- java.nio.file.FileAlreadyExistsException: jquery-3.6.0.min.js HOT 2
- Why do I have to be online to execute tests (java.net.UnknownHostException: testng.org) HOT 7
- Can't run tests in Eclipse. The option doesn't appear in the contextual menu HOT 5
- Latest testng 7.8.0 is not working with eclipse testng 7.4.0.202106051955 HOT 9
- Can you release a new testng-clipse formal version to support testng 7.8.0 HOT 3
- @Parameters cannot use static variable in array HOT 3
- The TestNG eclipse update site gives error 404 which say the site do not have the file HOT 1
- Unable to resolve error in testNG.xml file HOT 3
- TestNG plugin 7.8.0 requires that I add slf4j to classpath HOT 9
- Error: Could not find or load main class org.testng.remote.RemoteTestNG plugin 7.8.0 with Eclipse 4.24 HOT 2
- Missing org.slf4j.impl during TestNG 7.8.0 Plugin install HOT 3
- Migrate LaunchSuite and SuiteGenerator classes from "org.testng.xml" in testng codebase to here HOT 6
- Couldn't run TestNG under run configuration after installing TestNG and adding dependency in maven pom.xml HOT 1
- is there any way to set run testng jre Differ from project build jre (testng default use project build jre) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testng-eclipse.