QA-WBA-3

Modified on Wed, 8 Feb, 2023 at 1:13 PM

No tests are running or run and debug annotations are not visible!

If you are using TestNG annotations, make sure your test methods return void and not boolean as it is not supported by TestNG. Additionally make sure you are not passing any parameters inside of the function in order to successfully run it.

Tests are getting skipped!

Test getting skipped may be because of some deep rooted exceptions being thrown. Please check with logs, throws and breakpoints to easily find the exception and correct the error. 

Getting error: test is not found in gradle path (or equivalent)!

The testng.xml file may be responsible for more than a few errors in gradle that are hard to understand and debug. Some issues like ' :test not found' error can be fixed by correcting the testng.xml file and making sure all the tags are opened and closed properly.

Screenshots not being processed... showing the packet limit exceeded!

We have included 'screenshots/' in .gitignore which is basically the files that are ignored while pushing to the remote repository. This is important because the 'screenshots' folder might cause issues because of its size and number of files. Make sure to name the file 'screenshots' with a small s and not 'Screenshots' as the latter is not added in .gitignore.

How does a data provider work?

The DataProviders in TestNG are another way to pass the parameters in the test function, the other one being TestNG parameters. DataProviders pass different values to the TestNG test case in a single execution and in the form of TestNG Annotations. For a detailed explanation check this.

For more information on Data Providers, check this link.

Why are my tests getting skipped?

This often happens when the dataprovider method returns a null value: check the path of the xlsx file that you have provided for accessing the datasets for testing. Otherwise try catch blocks may help pinpoint the error further.

Why is my DP method not detecting the sheets/cells?

Make sure the spelling and case of the sheet/filename is accurate. This may cause issues while using the dataprovider method as the DP won't be able to properly access the specified files or sheets.


Build failed! Why?

Make sure your testng config file is correct  -i.e - It needs to adhere to the annotations, attributes and values used in the project and also add the suites property pointing to the testng file path in build.gradle file


I am unable to perform the multi tab validation scenario!

Make sure to switch to another tab, frame and then confirm the test works fine by verifying each step - you can use a combination of logs and debugging with breakpoints for this.

While committing the code the terminal is showing error like individual file must not exceed 2MB

We need to use the command: git rm --cached <filename/filepath> to remove large files from the staging area and then do a git add, commit and push.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article