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. ...


4

Katalon has an example project on github: https://github.com/katalon-studio-samples/katalon-bdd-cucumber-tests Although I find the directory structure hard to navigate the feature example does follow a pattern like: Feature file (feature code example) Steps that use test cases in pages (steps code example) Pages that implement actions (page action example) ...


4

I personally divide the logic into three levels: feature file (Cucumber), step definition (Cucumber + Java), page objects (Selenium and Java). Cucumber separates business logic from the programming logic (1. and 2.) and the page object pattern separates test methods from the pages locators.


3

Given is your setup, it brings the system under test in a state you can start doing the action you want to test. The given part describes the state of the world before you begin the behavior you're specifying in this scenario. You can think of it as the pre-conditions to the test. https://martinfowler.com/bliki/GivenWhenThen.html Depending on the ...


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.


3

Whatever the reason - if you check for 400 things in a loop you can only find 1 defect at a time because your test will throw an assertion error. I suggest using something like DataProvider from TestNG: @DataProvider Marks a method as supplying data for a test method. The annotated method must return an Object[][] where each Object[] can be assigned the ...


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

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.


2

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"); }


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

For functional API testing you can consider using SoapUI, it provides unlimited workspaces/projects and immense features list even for open-source free version including assertions, mocks, scripting, automation, support of OAuth and WS Security, SAML, NTLM, security testing features, limited load testing features, support of SOAP, REST, AMF, MQTT, JDBC, JMS, ...


1

Ok, looks like it has been asked here and the solution works: https://forum.katalon.com/t/assigning-values-in-variables-for-called-test-cases/14543 The variables should be declared in the called test case AND the main test case. My problem was having variables declared only in the called test case


1

You seem to have a REST design problem that is affecting the testability of the system. Firstly, the POST could return the created entities (or references to it). Secondly, the GET could have a filter option, such as createdSince parameter. Hiding these problems will make them accumulate until your system is barely testable. Now, if you want to proceed ...


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

Short answer : no. Squash TA currently provides connectors out of the box to Selenium Sahi SOAP UI Databases/filesystem. There is some paid plugins available, provided by the editor : Ranorex UFT As Squash TA is Open Source, you may write your own connector to Katalon.


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

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


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