Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projects are not seen on klov #69

Open
unandihallimath opened this issue Aug 29, 2020 · 1 comment
Open

Projects are not seen on klov #69

unandihallimath opened this issue Aug 29, 2020 · 1 comment

Comments

@unandihallimath
Copy link

unandihallimath commented Aug 29, 2020

Hi @anshooarora Am trying klov for the first time !

Am not able to see projects on http://localhost:85/projects
image

My docker file [running in Windows 10]
version: '2'
services:
klov:
image: anshooarora/klov:1.0.1
container_name: klov
environment:
- SPRING_DATA_MONGODB_URI=mongodb://mongo:27017
ports:
- "85:80"
links:
- mongo
mongo:
image: mongo:4.4
ports:
- "27017:27017"

my code snippet:

            ExtentReports extent = new ExtentReports();
	ExtentKlovReporter klov = new ExtentKlovReporter();
	
	try {
		klov.loadInitializationParams(new FileInputStream("./src/main/resources/klov.properties"));
	} catch (FileNotFoundException e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
	
	extent.attachReporter(klov);
	ExtentTest extentTest = extent.createTest("test1");
	extentTest.info("Info");
	extentTest.fail("fail");
	extent.flush();

klov.properties:
klov.project.name=Project1
klov.report.name=Build1
mongodb.host=localhost
mongodb.port=27017
mongodb.uri=mongodb://mongo:27017/klov
klov.host=http://localhost
klov.port=85

I do not see any error . What am I missing here?

FYI dependencies:

    <dependency>
	<groupId>com.aventstack</groupId>
	<artifactId>extentreports</artifactId>
	<version>5.0.0</version>
</dependency>
<dependency>
	<groupId>com.aventstack</groupId>
	<artifactId>klov-reporter</artifactId>
	<version>5.0.0</version>
</dependency>
@bharath411
Copy link

I think, that is an open issue, but one workaround is to give the project name here
ExtentKlovReporter klov = new ExtentKlovReporter("Project Name");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants