QA-WBA-1

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

My gralde build is failing!

A build failure means an exception faced by the compiler during running the gradle project. This means you must try and debug carefully with the help of breakpoints, logs and throws.

Build may fail to few reasons including:

  • Poorly configured gradle —> check build.gradle file for correct configuration and compare it with your stubs.

  • Wrong testng file —> check your testng file for mistakes and/or blank spaces.

  • Runtime/compilation error —> in this case, gradle will throw an error message which will come handy while debugging. Minutely check and debug the error accordingly.

What is 'makeusernamedynamic' parameter in qkart register page file?

The make dynamic parameter is used the make the username unique to avoid 'user already registered' error while testing. We have to turn that off and on according to whether we are trying to check for already registered user or new user entirely.

What is run platform assessment and why is it important?

We assess your code on the cloud using information that we get from run platform assessment bash file. Hence it is not only an early indicator of your code precision but also helpful for the backend to process your correctness and show accurate results.

Make sure to check it for any hints in case your assessment fails. 

My shoe size chart verification is failing!

While debugging it is important that we log in order to understand in detail what we are processing. Try something like "System.out.println(object1+" is compared to "+object2)" in order to get the clear picture of the different elements inside the chart that you are comparing. This might make everything much easier to debug.

How do I get the xpath of an element easily?

1. Launch the Chrome browser and navigate to the URL or webpage.
2. Hover the mouse over the desired element (object) on the web page, right-click on the element you are looking for XPath, and select “Inspect.”
3. The elements panel will now appear on the right-hand side of the screen. The HTML code of the element will be highlighted in blue in this frame.
4. In the panel, press ‘ctrl+F’ to enable DOM searching.
5. In the panel, you can now use XPath to evaluate that element.
6. If XPath matches any elements, they will be highlighted in yellow in the DOM.

Why does driver.close() throw an error?

This might be because you are closing a tab or window prematurely before switching to a valid window/frame. Make sure the driver.switch() and driver.close() methods are in sync in order to not get errors in this aspect.

I lost some of my code during merge conflict!

You can access the stubs of your module in your gitlab, they will have an appropriate name relevant to the module and they will end with keyword 'STUBS'. every user has access to the stubs. You can go into the stubs and access the code that was intended for use in that module and copy/paste them into your workspace. 

Try going to your gitlab.

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