New answers tagged

1

Have a look at Alan Richardson who has a lot of online courses - mostly Java focussed and also useful for newbies (they are up-to-date and he provides coaching as well), books and is a general nice guy (not important in itself ;-) ) Another would be Richard Bradshaw who ticks the same boxes. Richard also provides several free online courses. Both are ...


1

so just for motivation purposes. I have been working as Testmanager and also for functional tester for many years. I am in same position like you, changed it to Automtion engineer - and surprise - at the age of 38 years! There are few steps how in my way it worked: Broad your technical skills like Java and/or Phyton with Focus e.g. on automated Framework ...


2

Organisations now want to hire technical testers that can write automation frameworks in Selenium webdriver, Java/python and CI/CT tools etc. Well, you already know how. It just takes time and action, you need to pick up one of these automation tools and learn it. That's your part and other ppl can only guide you on your way. But... ... don't let yourself ...


3

Test Automation on itself should not be a field if you ask me, therefor it is mostly software developers (that value automated testing highly) who write books/articles that drive the field. Because very good software developers are also very good testers. Kent Beck: My personal favorite is Kent Beck and his book Test-Driven Development. Beck was one of ...


0

Try this code: for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( %windir%\System32\tscon.exe %%s /dest:console ) to create a bat file and it will simulate you still log in to the system. Found it from here: https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html


0

Work with your manager on the details. "They have decided to use...". Go over the actual requirements with your manager and talk about the issue you have implementing them. What do they suggest doing? "I'm needing to test". Who has determined this? Where are the requirements to test coming from? Who's in the loop? What conversations have been had about ...


0

I have also been in similar situation in functional testing services. The way to transform to automation engineer is to get started with small steps. Pick any programming language Java or Python. Learn about the language concepts such as data types, inheritance, abstraction, interfaces, methods, classes, objects, String and Lists etc and try to creating ...


2

In similar circumstances I simply used another CI pipeline as the tool, the main reasoning being that re-using of the same execution environment should give the closest results to reality. You can set up another pipeline with the same settings but running on a single build or even a pre built version so you can focus on the tests part only.


14

Quote:- If you can’t do great things, do small things in a great way. Automated testing requires more discipline compared to manual, Learning automation is not difficult but it requires a focused and planned approach. Keep this in your mind Cheating is acceptable in automation if you understand what you are doing. As you have more than two months to finish ...


0

You get a string, and you know what that string should end with. There is https://docs.microsoft.com/en-us/dotnet/api/system.string.endswith?view=netframework-4.8 You can use that, it's probably enough. If you know the allowed variations of Business Address 1: then you can remove those from the string. Maybe you know that your answer should always be after ...


1

You Can Check if cell is numeric or String through this code if(MytempCell.getCellType() == Cell.CELL_TYPE_NUMERIC) your code ... else if(MytempCell.getCellType() == Cell.CELL_TYPE_STRING) your code ..


2

This is going to be blunt. I don't know a not-blunt way to say this. First, learn to code. Working with Selenium, no matter what your toolkit happens to be, is writing code. If you don't understand the code or the principles behind the code, you will be constantly frustrated, and worse, you will irritate your peers with what will seem to experienced coders ...


2

You should consider: Which language to pair it with How to immediately integrate with CI How to approach naming identifiers, i.e. page objects What language application developers use (for pairing) How to handle timing issues and intermittent failures well Whether to use a js approach such as Jasmine, Jest, etc. for some/all tests Whether to use Visual ...


0

Try this solution. Works perfectly in Google Chrome dev tools console.


0

You can retrieve all inner text of <p class="details-info-block__text"> and then parse out the required text using String-related toolset of C#. It will be quite a tricky thing to extract what you want using selenium since the latter piece of text is a separate "naked" text node in a DOM and Selenium cannot parse it to a dedicated WebElement (anything ...


0

The cleanest solution is to create a model object for each row. This object would have one attribute for each column: Technology Cell 1 .... One method of this object would be something as Java's equals, which is responsible to check if the attributes of two objects (of the same model class) match each other. This method will have any "adjustment" ...


0

Here @Test(dataProvider="tc001") public void tc001(String userName , String password) { driver.get(baseUrl); login.openApplication("https://test.com", driver); login.loginToApplication(driver, userName, password); } you have driver.get(baseUrl); that receives baseUrl which is null (you are not assigning a value for that string anywhere)


0

As far as I know, Gradle does not control the execution order. Instead use the TestNG priority annotation. example: @Test(priority=0) public void test1(){ System.out.println("First Test"); } @Test(priority=1) public void test2(){ System.out.println("Second Test"); } And maybe set the order for classes in Testng.xml e.g here.


-1

Please try with this Schema: { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "categories": { "type": "array", "items": [ { "type": "object", "properties": { "aStringOne": { "type": "string" }, "aStringTwo": { ...


0

Loop over the cells Pseudo code: valid_data = ['a', 'b', 'c'] valid_data.each do |expected| actual = driver.findElement(By.xpath("//*[@id=\"siaSummaryTable\"]/div[2]/div/div/div/div/div/table/tbody/tr[1]/td[@expected]")).getText(); Assert.assertEquals("invalid", actual, expected) end


1

You can create a method that would validate data in one row of a table. It could accept the row number and expected values. So you would just reuse that method for all the table rows. This would make your code less complex and more readable.


0

Seems similar as this question: https://stackoverflow.com/questions/39475150/a-java-error-exception-has-occured-while-trying-to-execute-selenium-webdriver Upgrade your Java version to the latest version.


3

Method click() that you invoke on located element does not return anything. It is void (you probably used this "type" in some of your methods declaration like public static void main(), etc). So as that method is called the last in your right-hand side of assignment, Java assumes you're trying to assign what the method returns to what you have on left-hand ...


0

First initialize the WebElement and use it further for click or sendkeys() function. As like below: public void uploadFn() { WebElement uploadElement = driver.findElement(By.xpath("//input[@id='HorizontalLogoPath']")); uploadElement.click(); uploadElement.sendKeys("D:\\LOGO\\HorizontalLogoPath"); }


1

The event-queue triggering the state change could be overloaded. I would expect an event-queue to be sequenced; that is, events pushed into the queue in order (1, 2, 3) are popped off the queue in the same order (1, 2, 3 and not 2, 1, 3). Since the first event should not trigger a change, I would write two tests with the same canvas, each pushing a second ...


1

Katalon Studio supports Windows 10 application testing. From v 7.0 (currently in beta). I belive it is Winium based. More info here: https://docs.katalon.com/katalon-studio/docs/introduction-desktop-app-testing.html#windows-execution-type.


0

If you read through the NOTE section of the dismiss action in webdriver https://www.w3.org/TR/webdriver/#dismiss-alert - says A request to dismiss an alert user prompt, which may not necessarily have a dismiss button, has the same effect as accepting it. Could you please try out 2 things? Try the same event on a different browser and see the result. ...


5

I think in Python you can check for None or "" on Empty string Some options: self.assertEqual(element.text, None) self.assertEqual(element.text, "") self.assertEqual(len(element.text), 0) Also check this question for other options: https://stackoverflow.com/questions/9573244/how-to-check-if-the-string-is-empty


0

You can do assertation of null value for reset field. public void testApp() { //true, check null assertThat(null, is(nullValue())); //or //true, check null assertThat(null, is(IsNull.nullValue())); }


6

In this kind of situation on a development server I would be looking to get some information from the system itself to tell me when it has finished doing something. I would expect the queuing system to be keeping records of what items have been on the queue, and what status they are now in. The easiest way to do this is if you can find a key in the queuing ...


1

I would say that such cases are good candidates for white-box testing. If developers are sure about what caused the issue to occur, the solution can be analyzed in terms of white-box techniques and tests can be designed to verify if supposed algorithm is indeed implemented in the way it was designed.


16

Great Question Niels. Given that it will depend on the given situation I would consider approaching this as a data gathering exercise. I would investigate what is the normal distribution from many repeated runs. If 99% of the time it remains correct after 1 minute (i.e. after 1 minute doesn't then change again) and the business considers a 1% failure (and ...


0

Despite not receiving any guidance here other than someone wanting to edit my text for clarity despite providing any actual value as far as the actual question goes, I was able to find a solution to the issue based on some additional research, some help from a coworker and some experimentation. So there are several aspects that are important. First of all,...


0

With pytest, create a fixture for login in conftest.py In conftest.py file, @fixture(scope = 'function') def login(*args): <login_code> In test files, def test_home_page_icon(login): login() <test, verification code> If you are not using pytest,you can import the login function in test file and call the function in test file.


0

You should be able to use the JavaScript executor to grap the shadowRoot node. From there you can search within. Read this article: https://medium.com/rate-engineering/a-guide-to-working-with-shadow-dom-using-selenium-b124992559f The article is in JavaScript, but driver.execute_script should work in python.


0

You just fuel add with the database and manipulation with the data base that is the best option for drop down list


-1

Sometimes selenium is just too fast. You can try putting a sleep thread dropdown = Select(element) time.sleep(2.4) dropdown.select_by_value("300") Or, you could try to select by index https://www.guru99.com/select-option-dropdown-selenium-webdriver.html **Edited to change C# to python


3

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


1

Interesting topic, I think I can see something similar in the company I work for. BUT... ... how do you really know they are not motivated? It's easy to use your assumptions and just rely on that. I'm in fact suggesting you should talk about that with them, they might have an interesting input as well :) If it really turns out they are not motivated, the ...


3

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.


0

You have to edit your testng.xml file. See this example: <test name="Smoke Test"> <classes> <class name="packagename.classname"> </class> </classes> </test> In , you must enter your tests package name before name of class that you want to run.


1

Make them co-stars Frequently application developers are considered the 'stars' and get the fame and money and recognition. Quality Engineers, whether manual or automated are seen as second class citizens. Your title says "deal with testers". That is a red flag. How do you 'deal' with application engineers is a different question. Currently there is a ...


2

You and your team cannot .... I repeat, simply cannot afford to have testers low on motivation. You can probably have lesser talented testers, high in morale and eagerness... but you just can't have people who are not motivated enough! Period! Poorly motivated period think negatively and their negativity can rub off on other resources. This will impact ...


2

Get in contact with the developers. Just like with internal projects you probably need someone to guide you through the code to get started. Larger Open-Source projects often have a IRC channel or a mailing-list. If you are really intressted in helping the project and not just to understand their test-architecture you could send a message to a communication ...


2

"A journey of a thousand miles begins with a single step"- Lao Tzu Go Small .I would start with a known open source project- most likely an automation library which I am already using . I would make a list of interesting API methods which I am using on daily basis and curious about how they work under the hood. In this way I will take small baby steps to ...


0

Here is one approach to call the XPath with dynamic value. 1.Create one python file name ConfigVariables.py uid="test" my_Xapth='xpath=//*[text()=\''+uid+'\']' save this file 2.Import this file in .robot file under the setting keyword. * Settings * Variables ../Variables/ConfigVariables.py Now try to call my_Xapth variable in the test case , I ...


1

It depends on how you define "available". Making a simple call and checking that you get a code 200 means the servers is up and it can recieve calls. Now if the API uses for example a database then the simple call might not detect underlying systems are wrongly configured. Personally I would want to ensure the API and its depencies are working. So doing a ...


1

Another option you could try is Google Voice (voice.google.com). This will give you a web interface to a phone number which is free for your first number. I have used the app to test two factor authentication, so it should work for at least manual testing of your scenario. Google allows you to have one number without charge, but you need to pay for any ...


1

Unfortunately the 'answer' is that you need to learn a lot more. You have been given an assignment that will likely require several hundred hours of study for someone not familiar with those products. Be aware of this. The steps I would consider taking: Get your free for a year aws account Learn how to use aws lambda - videos, books, classroom, labs, etc....


0

I cannot reproduce your issue using latest JMeter 5.1.1 In case of any inconsistencies between JMeter and the real browser behaviour make sure that the request you're sending with JMeter looks exactly the same as from the real browser including: Cookies which can be added via HTTP Cookie Manager Headers which can be added via HTTP Header Manager You ...


Top 50 recent answers are included