header.navigation

    SOFTWARE TESTING

    • register
    • login
    • search
    • Job Openings
    • Freelance Jobs
    • Services
    • Conferences
    • Courses
    1. home
    2. baileigh
    B
    • profile
    • following
    • followers
    • topics
    • posts
    • best
    • header.groups

    baileigh

    @baileigh

    1
    reputation
    6
    posts
    1
    profile_views
    0
    followers
    0
    following
    joined lastonline

    baileigh follow

    pages:account/best, baileigh

    • RE: JUnit + Maven. How to do something before and after all tests?

      In general, this solution will be useful to anyone who wants to test consistently and in a given order.

      It creates a suite, where in the annotation we list the classes in the order of execution:

      @RunWith (Suite.class)
      @ Suite.SuiteClasses ({OpenConnection.class,
                       GetServerIdTest.class,
                       ModbusStatusCodesTest.class,
                       ModbusSerialTransactionTest.class,
                       CloseConnection.class})
      public class OrderedTestSuite {}
      

      Add the plugin to pom.xml:

      <plugin>
               <groupId> org.apache.maven.plugins </groupId>
               <artifactId> maven-surefire-plugin </artifactId>
               <configuration>
                   <includes>
                       <include> ** / OrderedTestSuite.class </include>
                   </includes>
               </configuration>
      </plugin>
      
      global:posted_in, Automated Testing
      B
      baileigh

    pages:account/latest-posts, baileigh

    • RE: How to call one script to another script in monkey talk automation tool for iOS

      Suppose you have two scripts scriptabc.mt and scriptxyz.mt

      if you want to call scriptabc.mt from scriptxyz.mt then your scriptxyz.mt should be as below

      Script scriptabc.mt Run
      

      Please let me know if it helps.

      global:posted_in, Mobile Testing
      B
      baileigh
    • Automated Unit Testing vs GUI Automation

      Automated testing is any type of testing where you are using one piece of code / program to test another piece of code / program. This can be unit testing as described above, or it can be via a specific automation tool, such as TestComplete, QTP, Selenium, etc.Unit tests tend to be created and executed by the developer of the code in question, whereas GUI automation will more probably be carried out by a software QA specialist.

      With regard to this certain questions come to mind.

      1. Is it better to write automated unit tests using code or perform GUI Automation using Automated Test tools like QTP, Selenium?

      2. In a SDLC lifecycle, what is the effort involved in writing Automated Tests using code versus GUI automation using Automation Test Tools?

      3. Are their benefits of writing Automated unit tests using code and performing GUI Automation using Automation Test Tools?

      global:posted_in, Automated Testing
      B
      baileigh
    • RE: What is the proper way to declare @BeforeClass on a test in Android with Kotlin

      Usage of companion object is the proper way:

      companion object {
        @BeforeClass
        @JvmStatic
        fun setupClass() {
          // your class level setup logic here
        }
      }
      

      Remember that @BeforeClass is static and is executed before you have test object instance. There's no other way. If you want to have access to the injected variable you should do your logic in @Before method which is executed before each @Test method.

      @Before
      fun setup() {
        // your setup logic here
      }
      
      global:posted_in, Automated Testing
      B
      baileigh
    • RE: JUnit + Maven. How to do something before and after all tests?

      In general, this solution will be useful to anyone who wants to test consistently and in a given order.

      It creates a suite, where in the annotation we list the classes in the order of execution:

      @RunWith (Suite.class)
      @ Suite.SuiteClasses ({OpenConnection.class,
                       GetServerIdTest.class,
                       ModbusStatusCodesTest.class,
                       ModbusSerialTransactionTest.class,
                       CloseConnection.class})
      public class OrderedTestSuite {}
      

      Add the plugin to pom.xml:

      <plugin>
               <groupId> org.apache.maven.plugins </groupId>
               <artifactId> maven-surefire-plugin </artifactId>
               <configuration>
                   <includes>
                       <include> ** / OrderedTestSuite.class </include>
                   </includes>
               </configuration>
      </plugin>
      
      global:posted_in, Automated Testing
      B
      baileigh
    • .travis.yml - What is this file for?

      It's not the first time I've come across the .travis.yml file in the source code of the libraries. I realized that he is related to testing, Travis CI and github. Can you tell us in detail how this file works and what Travis CI does?

      global:posted_in, Continuous Integration and Delivery (CI, CD)
      B
      baileigh
    • How to properly test a website?

      Given: Laravel, admin + rest api, postgreSQL, phpunit. Functionality: articles with pictures.

      How to properly unit / feature testing?

      I have the following Questions:

      • Test service and repository separately?
      • Should I use some other database for testing? So I will not break the filled working database.
      • How to test the functionality of loading images? And in general, where to upload them, in the same folder as when working on production, or create a separate folder?
      • Do I need to somehow differentiate the prod / dev config for testing? Or is it possible to somehow change the config when unit testing using phpunit?
      global:posted_in, Manual Testing
      B
      baileigh