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

Custom steps with integer argument is not working . #7

Open
khatriarpit opened this issue May 10, 2021 · 0 comments
Open

Custom steps with integer argument is not working . #7

khatriarpit opened this issue May 10, 2021 · 0 comments

Comments

@khatriarpit
Copy link

khatriarpit commented May 10, 2021

Hello I am facing couple of problem .

I have created custom steps as below.

@QAFTestStep(description = "wait for {0} milisec")
public static void wait_for_milisec(Integer time) {
	 try {
		 Thread.sleep(time);
		} catch (Exception e) {
	    }
   }

Also my scenario file as below

@description:TestingJava Description Testing
Scenario: test
   Given get "http://www.demoqa.com/alerts"
   Then wait for 4000 milisec

I am getting error saying unimplemented method which is working fine if i change argument to String . Integer Argument create problem .
Also Second problem i am getting description as first word in report not whole line .Above test case it is printing Description as "TestingJava".
Could you please help ?

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

1 participant