New answers tagged

0

As per my experience, it takes 1 hour to manually write the scripts of a test case with 8 to 10 steps and 1 day ( 8 hours) to develop the automation code for the same. But still, the other factors given in all other answers can impact it.


0

Use --log command line option. The appium command will take a --log option that allows you to specify where the log file should be written to, like this: appium --log appium.log This will cause the logs to be written to ./appium.log. Note: logs will also still be written to stdout. To send the stdout logs to a file instead, you could probably use ...


0

I'm neck deep in this exact kind of testing right now. Web applications are particularly tricky to test authorization properly. The data setup can be difficult, because you need to create arbitrary users, and assign them roles. You also need to test your "standard" roles. Every HTTP request, button and icon needs testing for both "happy" path and "unhappy" ...


0

Please use TESTNG assert: Assert.assertEquals(actualtitle, expectedtitle); fails the test . You have to import import org.testng.Assert; public class TestNgbasic{ DesktopOptions option=new DesktopOptions(); @BeforeMethod public void setup() { // DesktopOptions option=new DesktopOptions(); // Start your outlook session option.setApplicationPath("...


0

You can make a call to the User creation endpoint, with the payload necessary for each role, and then access the system with the token for the newly created user. Alternatively, you can create users with specific at deployment time, e.g. using databases fixtures, and use these pre-defined users on your automated checks.


1

There are no best practices, only good practices in context. With the scripts configured correctly, nothing more than a make test is necessary. E.g., If you have a Jenkins job to run your automated checks: test: curl -X POST http://jenkins_server.com:port/job/job-name/build If you have to fetch code from other sources, you can run a git clone or a ...


0

Solution to fix emulator issue: Open Control Panel Click on Network and Internet Click on Internet and Sharing Center Click on your Wi-Fi Connection name Click on Properties Then select Internet Protocol Version 4 and click on Properties Click Advanced -> Click on Tab DNS -> Click on Add Write 8.8.8.8 & Click Add, It will look like Check your ...


0

Based from the experience from our project, for me it was really helpful to understand how JavaScript works. In our project I had to test the frontend application (webapplication and mobile phones). Regarding your question "What is the use of JavaScript for QA? I would mention following points and examples from our project which was helpful for me: ...


0

Scroll Android app screen by 1/3 or 1/4 of full size of screen and use find all element and check there any new changes in screen elements e.g bubble element ID. continue this as long as there is change in elements appear on scroll. driver.findElements (By.id ("body_bubble")); store in Arraylist and check text, if all duplicate text appear means there is no ...


-1

The issue was due to a duplicate value I had in my feature file. I rectified it & now I can view the test results in Test Explorer.


0

Thanks very much for your help so far! But, the issue appears to be with the CSS Selector for one of the hyper links in the System Under Test. I fixed that & it works now.


1

Ok. I will be as honest as possible here. 1. What is the use of javascripts to QA? Today everyone started learning Automation Started with Java + Selenium as a basic.But then came to realze that certain action on webbrowser can be performed by Javascripts only. So know couple of basic things of javascripts and how to use in open source tools such as ...


0

You mentioned Blazemeter's Chrome extension, which is what I would try first. Record a script, export the JMX, then update accordingly using the jmeter gui. If that doesn't work, I would suggest opening the browser's devtools to carefully observe what is happening with each HTTP request (with proxy off). Then re-create/debug these HTTP requests in jmeter ...


0

You can create customer matcher like below (Example only): import org.hamcrest.BaseMatcher; import org.hamcrest.Description; import org.hamcrest.Matcher; public class CustomMatchers { public static Matcher<String> matchesRegex(final String regex) { return new BaseMatcher<String>() { public boolean matches(final Object ...


0

This may happen when your create your XLS/XLSX file through LibreOffice. Apparently something is lost in the conversion and the file is not the same as a spreadsheet made in Microsoft Office. I had the same error and the solution for me was copying all the work I have done in LibreOffice Calc to a MS Excel spreadsheet and then save a new file.


1

Adding Few more which I have used recently & are good for image pixel comparisions: 1. PhantomCSS PhantomCSS takes screenshots captured by CasperJS and compares them to baseline images using Resemble.js to test for rgb pixel differences. PhantomCSS then generates image diffs to help you find the cause. Refer:https://github.com/HuddleEng/PhantomCSS ...


3

Vizzy: This is released recently by workday and was presented during one of the tech meetup: https://github.com/Workday/vizzy silkulix http://sikulix.com/quickstart/ Protractor-image-comparison https://www.npmjs.com/package/protractor-image-comparison webdriver-image-comparison https://www.npmjs.com/package/webdriver-image-comparison


0

try mvn test -Dcucumber.options="--tags @TagName"


0

Another approach is to go simple. I don't know if that works for your case. You can use something like APId. It allows you to define user stories (called transactions) that are series of requests and check those. You can have dynamic variables between them. For example, can do something like authenticate, list all users, get the first user and verify that ...


0

It is not the requirement that the engineer should have the knowledge of manual testing before entering into automation in a software testing company. But it would always be beneficial if you have basic idea about manual testing things like: 1. Defect reporting 2. Test case creation 3. Regression Testing etc.. So before entering the automation part if ...


0

I encountered a similar situation where I need to write an xPath for an element shown below: Element: <img src="webwb/pzspacer.gif!!.gif" class="inactvIcon" data-ctl="["DatePicker"]" style="cursor:pointer;"> I was able to grep the element using below xPath, where I used the backslash to escape the characters [ and ". Xpath: //img[@data-ctl='\[\"...


0

After login step use Webdriver Wait to wait until some of the element of landing page(after login) is displayed. For example, if you have an account username UI element in the landing page you can make WebDriver to wait until the element is displayed WebDriverWait wait==new WebDriverWait(driver,10); wait.until(ExpectedConditions.visibilityOf(element)); So ...


2

This is a great question and one that many organizations face. I recommend keeping the test code and the application code together because this will, at the highest level, help keep (or perhaps 'force') application and automation developers closer to each other in many other ways. It would be 'easier' to have the repos separate, however this is a very ...


2

When to choose different branch or repo If you are deploying the test scripts to a different test server to execute the steps and is executed completely independent of the source code or minimal dependency. Then it doesn't matter where you keep your code. I would suggest adding the test scripts and the required dependency together and store it under a ...


1

It doesn't matter, from a technical perspective. You can point your trigger to any path (test repo). The important thing is to respect the naming convention, so no one gets confused with it. I once had a developer ask me "Hey why do you have access to SUT-tests folder?" Unknowingly, I created tests inside folder with that name, but the devs would call their ...


0

I think service availability shouldn't be addressed with traditional testing. When would the corresponding tests run? Per hour, per minute, … ? Instead, monitoring is the way to go. You can use tools such as Uptime Robot to receive alerts whenever a service is down. In addition, use something like Sentry to be notified when internal exceptions occur.


0

package automation.selenium; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class Print_allthe_product{ public static void main(String[] args) throws Throwable { System....


0

Can you please specify Robot and Pabot version you are planning to use. First point: If you read the GitHub readme page, in the "Things you should know", it states: Pabot will split test execution from suite files and not from individual test level. https://github.com/mkorpela/pabot/blob/master/README.md So there is nothing to do on test level, except if ...


0

What worked for me was actually reversing the process. I first started doing testing and then I slowly started building up my knowledge of concepts and technologies. I don't think this works universally (what you test makes a difference, e.g. testing an airplane system vs. testing an ecommerce platform are two very different products and you need different ...


1

The TestComplete Name Mapping tool is an object repository. The key difference that I know of is that the Name Mapping tool is minimalist - it does not include anything more than is necessary. It's possible to define objects in the Name Mapping tool with nothing more than the alias and the full path. For a website, that's approximately equivalent to ...


3

I've been testing embedded devices since 1999, and I started from scratch as a manual tester and I'm now a full-time automated test software engineer developing both tests and systems / frameworks, so I hope I can offer a little perspective from my own viewpoint. I started out testing credit card machines (entirely manually), moved to mobile phones (mainly ...


2

No, it is not necessary but, I would say it is beneficial. Knowing the basics in testing is mandatory because, with the experience of test processes, test scenarios, test cases, test steps, and execution, you will be sturdy to write automated test scripts more efficiently. The transition will get smoothened if you start your career with manual testing and ...


4

Selenium IDE has no version control integration, at least for now. All the test info is written in a .side file (unless you are using code export to another language). If you've set up git correctly, you should be OK, provided you are not trying to work at the same file at the same time. Just commit different tests in folders you agreed on. However, I ...


1

You cannot concatenate JMeter Variables this way, in order to evaluate nested JMeter Variables you need to use __V() function like: ${__V(orderId_${counter}_g1)} More information: Here’s What to Do to Combine Multiple JMeter Variables


Top 50 recent answers are included