56 Topics

Member Avatar for
Member Avatar for dimitrilc

## Introduction ## In Android Studio, we can run multiple tests in parallel across multiple devices using the dropdown menu. ![Screen_Shot_2022-09-26_at_3.02.02_PM.png](https://static.daniweb.com/attachments/4/a7966192c6b1c265a65010a9d1fa236d.png) Running instrumented tests this way is very convenient during development, but there is a problem with this method when your tests are run on a remote build server: * …

Member Avatar for John_387
2
593
Member Avatar for dimitrilc

## Introduction ## When working on Espresso tests, you might have run into a situation where you need to verify what your app does when an activity is in a specific [**Lifecycle**](https://developer.android.com/reference/androidx/lifecycle/Lifecycle) state. In this tutorial, we will learn how to achieve this by using the **ActivityScenario** class. ## Goals …

2
40
Member Avatar for dimitrilc

## Introduction ## In the [last Selenium tutorial](https://www.daniweb.com/programming/software-development/tutorials/538447/basic-interactions-with-web-elements-in-selenium), we learned how to perform basic actions such as clicking and sending keystrokes. In this tutorial, we will learn how to do another action, which is the scrolling action. ## Goals ## At the end of the tutorial, you would have learned: …

Member Avatar for Klint
2
140
Member Avatar for dimitrilc

## Introduction ## Welcome to part 2 of the Selenium scrolling tutorial. Please follow the directions in [part 1](https://www.daniweb.com/programming/software-development/tutorials/538448/perform-scrolling-actions-in-selenium-part-1) to set up your project. In part 1, we learned how to let Selenium decide how it wants to scroll to elements. In this part 2, we will learn about a …

Member Avatar for Klint
2
204
Member Avatar for dimitrilc

## Introduction ## When working with Selenium, you might have run into a situation where you have to wait for long-running tasks to complete before you can interact with elements. Fortunately, Selenium has support for such situations via its many *waits* API. In this tutorial, we will learn how to …

2
67
Member Avatar for dimitrilc

## Introduction ## When creating a Selenium test, it is common for developers to want their scripts to take the same actions as a real human user would take. These action often includes clicking on elements or inputting text data into forms. In this tutorial, we will learn how to …

1
71
Member Avatar for dimitrilc

## Introduction ## While creating Selenium tests, you might have found that inspecting elements manually using the web browser’s inspector could be tedious. Even after you have found the element, you still have to go through the pain of looking up the correct **xpath** syntax for this specific element. To …

3
246
Member Avatar for dimitrilc

## Introduction ## Selenium is one of the most popular web browser automation tools out there. There is no restriction on what you can use Selenium for. You can use it to build a GPU scalping bot (*please don’t*) or build e2e tests for your website. In this tutorial, we …

1
158
Member Avatar for dimitrilc

## Introduction ## In Android projects, **DataSource** classes act as entry points to interacting with local or remote data sources. Their dependencies tend to be HTTP clients, the database, or DAOs, and their dependents are usually **Repository** classes. In this tutorial, we will learn how to provide a fake **DataSource** …

3
630
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to create an instrumented test for Navigation Components. ## Goals ## At the end of the tutorial, you would have learned: 1. How to test Navigation Components. ## Tools Required ## 1. Android Studio. The version used in this tutorial …

1
817
Member Avatar for dimitrilc

## Introduction ## In this tutorial, we will learn how to filter and validate Intents fired from the application under test. ## Goals ## At the end of the tutorial, you would have learned: 1. How to filter and validate Intents in Espresso tests. ## Tools Required ## 1. Android …

1
67
Member Avatar for dimitrilc

## Introduction ## When working with Espresso tests, you might have found it hard to make Espresso wait for background tasks to complete before performing other actions or assertions. Fortunately, the classes in the Espresso **idling** package exist to cover this use case. In this tutorial, we will learn how …

1
453
Member Avatar for dimitrilc

## Introduction ## Finding a View in Espresso tests can be quite confusing because there are so many matchers available. In this tutorial, we will learn how to find a View based on its sibling contents. ## Goals ## At the end of the tutorial, you would have learned: 1. …

1
266
Member Avatar for dimitrilc

## Introduction ## Based on the latest report from Appbrain, Samsung has the highest market share(*>35%*) among all of the Android OEMs, therefore it is important that your apps are tested against Samsung phones. In this tutorial, we will learn how to load Samsung Emulator skins onto our emulator devices. …

0
1K
Member Avatar for dimitrilc

## Introduction ## In Android development, Espresso can be combined with Junit to create powerful UI automation tests. In this tutorial, we will learn how to create Espresso tests. ## Goals ## At the end of the tutorial, you would have learned: 1. How to create Espresso tests. ## Tools …

Member Avatar for John_165
2
370
Member Avatar for dimitrilc

## Introduction ## UI Automator is a library that allows you to create tests that can interact with other components besides your App, such as Settings or other Android components. In this tutorial, we will learn how to incorporate UI Automator into our tests. ## Goals ## At the end …

1
526
Member Avatar for dimitrilc

## Introduction ## Junit is a popular framework to create tests for Java applications. Although individual unit tests are mostly straightforward, integration and functional tests are a little bit more involved because they usually require multiple components working together. For that reason, understanding the life cycle of Junit tests can …

2
205
Member Avatar for madhan

Hi - I am working with a windows OS created wordpress plugin unit testing code written as below <?php class Test_WP_Simple_Plugin extends WP_UnitTestCase { public function test_constants () { $this->assertSame( 'wp-simple-plugin', WPSP_NAME ); //Error line $url = str_replace( 'tests/phpunit/tests/', '', trailingslashit( plugin_dir_url( __FILE__ ) ) ); $this->assertSame( $url, WPSP_URL ); …

Member Avatar for rproffitt
1
48
Member Avatar for Reverend Jim

Sophos software has recent.y made their [Sandboxie](https://www.sandboxie.com/) software free for personal use and will soon be making it open source. For anyone unfamiliar with Sandboxie, it implements an isolated enviroment where you can run programs (even install them) without fear of affecting your system. When you run a program from …

Member Avatar for Seevenup
3
2K
Member Avatar for kamilacbe

Hi,Am new to ZAPI and I have to send automated report from my jenkins build to JIRA and then built has been configured with ZAPI and i can get the test result output in Jenkins and the result is updated in JIRA aswell But the problem is my Test details …

0
188
Member Avatar for Aeonix

Let's assume couple things. I created a nice website based on compiled program language (Node.js, ASP, Java, C#, whatever). It works nicely. But I'd like to get an estimate on how much hardware I'd need. So I could run 1 hosting, and it would result in "this" amount of impact …

Member Avatar for AssertNull
0
403
Member Avatar for ogsirus

Hi Guys, Really need your help. I have started a new job, my first developing job in fact and Im struggling to understand how the system works. Thier product is massive and far more complex than anything i've seen. I have been looking at it during my first week to …

Member Avatar for ogsirus
0
291
Member Avatar for crdipu

Hi all, I have made a web-service in php. I had run a load test on the same by using testing tool Jmeter. And got the result in as graph, please help me to analyze the graph. It shows 3 important parameters that are 1)Deviation, 2) Median and 3) Average. …

Member Avatar for Dmitri_1
0
300
Member Avatar for krystosan

I have a function in which i want to mock `os.listdir` that returns directory content to variable `dirContent` def setUp(self): self._filePaths = ["/test/file/path"] self.mox = mox.Mox() def imageFilePaths(paths): imagesWithPath = [] for _path in paths: try: dirContent = os.listdir(_path) except OSError: raise OSError("Provided path '%s' doesn't exists." % _path) for …

0
137
Member Avatar for happygeek

Which? magazine [has revealed](http://blogs.which.co.uk/technology/phones-3/apple-iphone-5s-fastest-phone-samsung-galaxy-s4-lg-g2/) the new Apple iPhone 5s to be the fastest smartphone of all in the latest round of processor benchmarking tests, despite it having less cores that rival handsets. Not only was the 5s almost twice as fast as the iPhone 5 in testing, but also around …

Member Avatar for Kelly Burby
0
556
Member Avatar for kau14

Let me know Software Development Methods and Testing methodology for designing software for multimedia tablet.

0
207
Member Avatar for old_apache

this is my code: switch(a){ case 1: case 2: case 3: case 4: printf("4\n"); break; default: break; } i need the nodes to make control flow graph for testing purposes.

Member Avatar for old_apache
0
190
Member Avatar for deepak.fugo

Hi All, We have website on Shared hosting. I am a newbie. i have installed PHPUnit testing framework on the server. When i try to run a test case in command mode(phpunit --help), i am getting error as attached screenshot. Kindly help me in executing PHPUnit. Regards,

Member Avatar for ahmedhamdy
0
256
Member Avatar for fonzi

Hey guys, I am curious on how to start automated testing, and what kind of software or scripts would i need to test java, c , c ++, c#, or python code. Also does anyone now any good well explained videos or websites out there, i tried searching on google …

Member Avatar for Taywin
0
149
Member Avatar for anisha.silva

ho how do i write unit test for the blow method public static void LoadState() { XmlTextReader TextFile = null; // program state file exist if(File.Exists(FileName)) { try { // read program state file TextFile = new XmlTextReader(FileName); // create xml serializing object XmlSerializer XmlFile = new XmlSerializer(typeof(ProgramState)); // deserialize …

0
132

The End.