Hot answers tagged

5

It is a common practice, but it should be handled with care. Some things worth thinking about- keep track of how many retries were made, it could represent a real bug and not a transient problem. For example is the first try is always failing in certain scenario. remember that repetitions will make your results less trustworthy so treat this as a temporary ...


5

Do the test cases test a functionality representing a flow? If yes, then executing only failed test cases the second times does not test the functionality properly. If the test cases are to test one after the other, then testing only failed test cases does not check if the failed test cases run along with other test cases, even if they pass the second time. ...


3

You could just split the calling suite into pre and post steps. Then your runner could run Pre Suite The Test Suite you wanted to call Post Suite.


3

I'm not sure how someone who doesn't work in your organization is supposed to know whether it's ok to delete a report after one or two months. Ask someone you work with: a peer, or your boss, or maybe the people who use the reports.


2

@FindBy(xpath = "//*[@class='prompt']/..") WebElement choiceHeader; WebDriverWait wait = new WebDriverWait(driver,30); wait.until(ExpectedConditions.visibilityOf(choiceHeader)); Integer parentWidth = choiceHeader.getSize().width; Actions ac = new Actions(driver); ac.moveToElement(choiceHeader, parentWidth-13, 13).click().build()....


2

you need to import selenium class in the katalon script window for example: to use "Webdriver" import org.openqa.selenium.WebDriver as WebDriver WebDriver driver = DriverFactory.getWebDriver() like this we have call the required selenium classname


2

What about checking if the process is running by using a CustomKeyword ? In your Keyword: @Keyword boolean processIsRunning(String processName) { def sout = new StringBuilder(), serr = new StringBuilder() def cmd = 'tasklist /FI "IMAGENAME eq ' + processName + '"' def proc = cmd.execute() proc.consumeProcessOutput(sout, serr) proc....


2

According to the documentation BDD steps can also be implemented in Java: Step Definitions can be written in any Cucumber-supported programming languages including Groovy and Java. https://docs.katalon.com/katalon-studio/docs/step-definitions.html


2

Have you updated chrome driver as well? – Alexey R. Oct 30 '18 at 16:13 Resolved ! Upgrading to Chromedriver 2.43 did the trick. Latest Release: ChromeDriver 2.43 Supports Chrome v69-71 Changes include: [...] Fixed Switch to Frame is not spec compliant [...] Thanks to Alexey R.


1

Katalon is a GUI which uses Selenium framework. Definitely you will need to get to know some selenium code basics to adequately use the tool. There is no magical tool for test automation where you can write test cases without dabbling into some coding (albeit a lot of products try to sell this).


1

Configure the IE browser like given in the link and try. Make sure your IE version is more than 7. In Katalon - go to Project -> Settings -> Execution -> Default -> IE – click on Add and add these values {name = ignoreProtectedModeSettings, type = Boolean, value = true} Followed steps here - https://docs.katalon.com/display/KD/Internet+Explorer+...


1

I don't believe recorders will be faster in the short, nor the long run. Recorded tests need to be re-recorded, are harder to debug. Unless it is easier to get a lot of non-technical people who can continuously update the recorded test-suite. Faster would be writing test scripts and letting people in low costs countries run the scripts daily until you have ...


1

After looking through https://docs.oracle.com/javase/tutorial/2d/images/saveimage.html https://stackoverflow.com/questions/19871955/java-io-filenotfoundexception-the-system-cannot-find-the-file-specified https://stackoverflow.com/questions/47600505/chrome-headless-doesnt-work https://stackoverflow.com/questions/16239130/java-user-dir-property-what-exactly-...


1

The answer will depend on the version of Katalon you are using and the script. So if you are running a test and the script closes the browser, then the next script needs to open it. If however the IE window is open and it is not recognizing it then you may need your system to be reconfigured. Can you please provide more details so we can understand the ...


1

I suggest you identify the elements under test which you know lead to flakiness and test those separately from other tests. If the said tests repeatedly fail, then it's up to the business whether or not a fix should be implemented. This should avoid the situation whereby the failure of these tests prevents other features being assessed.


1

My best advice is to find the route cause of all failures, being random or not and fix them once and for all. I remember a case where a tiny bit of information on a web page was retrieved from an external party. Whenever the external party would randomly return an error, the complete page would not be rendered at all. For a high traffic website this is a ...


1

How to import Selenium IDE test cases into Katalon Studio In the Katalon Selenium IDE, select the test case that you want to export. Select File > Save test case as. We need to save the test case as HTML format to import into Katalon Automation Recorder. Provide a name with “.html” and click Save. Next, to import into Katalon Automation Recorder, start ...


1

Your element seems to be present, but unreachable. Use verifyElementClickable(...) instead of verifyElementPresent(...) Documentation: Reference Document


1

Try this, get the value inside the input box and compare. WebElement A = driver.findElementById("locator"); String text = A.getAttribute("value"); if(text.isEmpty()) { System.Out.Println("input box is empty"); }


1

You have to use: Wait For Element Not Visible For this element <div class="ui-widget-overlay ui-front"></div> It appears on the front-end most probably when there is some back end operation running and disappears when the operation is finished. You maybe have to add some delay of 1 or 2 seconds before the above step if the test persist ...


1

You can also change the template of the email that will be sent after a test suite is executed. Project-Settings-Email-Template


1

Yeah, you can modify the .csv file as Bhavani said above. For your information, they also provide Katalon Analytics (beta version) - a web-based analytics platform with visual reports/ charts. The user guide could be found here


1

After execution of test suite, In the particular project refer Reports folder. In that .csv file will be appear. It will have the test step, response time, test status. The reference screenshot is below:


1

The version of katalon studio you are using may be the issue here. As long as you put the "http://" in the url, the url should be launched. I would suggest you show us the code and the error to help you debug. When using chrome, a robot icon shows on the toolbar instead of this browser is being operated through automated tool. The tooltip on the icon would ...


1

Use IF ELSE condition for check/Uncheck the checkbox same as for radio button also. In Excel store the Checkbox/radio button column value as 1/0 if 1- check 0-uncheck if(findTestData('UserGroup').getValue('Name',3)==1) { For Radio/Checkbox write a code to click }else{ For Checkbox write a code to uncheck }


Only top voted, non community-wiki answers of a minimum length are eligible