Code Monkey home page Code Monkey logo

maqs-dotnet's Introduction

Builds:

Build Status Quality Gate Status Coverage Bugs Vulnerabilities

Releases:

Nuget NuGet package download counter
Visual Studio Marketplace Version Visual Studio Marketplace Downloads

License:

License: MIT

MAQS

Introduction

MAQS stands for Modular automation quick start.

It โ€ฆ

  • is a modular test automation framework
  • can be used as the base for your automation project or individual pieces can be used to enhance existing frameworks
  • is maintained/extended by Cognizant Softvision volunteers

The main idea behind MAQS is to avoid reinventing the wheel. Most automation projects require the same basic set of features, and these features take a significant amount of time and effort to effectively implement. MAQS streamlines automation efforts by providing a framework with these base features built in. This allows engineers to spend their time testing, rather than building and maintaining a one-off testing framework.

Help files

Powered By

Testing Powered By SauceLabs

SonarCloud

License

The MIT License (MIT) Copyright (c) 2022 Cognizant

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

maqs-dotnet's People

Contributors

aaa-bodensteiner-matt avatar acousticguitar avatar bradyrad avatar brannengh avatar cgillum018 avatar chancesuhsen avatar dependabot-preview[bot] avatar dependabot[bot] avatar dylansalmi avatar fermjacob avatar jamesnromach avatar jason-edstrom avatar jeffjagen avatar jeffreyzacher avatar johngagliardi avatar jonreding2010 avatar joshwencl avatar jredingcsv avatar jwenclcsv avatar leoliu3 avatar manpreetsinghm avatar mathiasbutala avatar matt-helgerson avatar merihim avatar samwegner avatar skalpin avatar skow0020 avatar troywalshprof avatar twalshcsv avatar vjeffx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

maqs-dotnet's Issues

Add Playwright module

Add module similar to the Selenium module
Include:
BaseTest
TestObject
DriverManger
DriverFactory
BasePageModel
Config

Clear config overrides not always clearing overrides

Override values can be accidently put into the run config context, which means are not removed when we ClearOverrides.

Repo code
In the following example the GetBrowser test will fail because it find Webkit when it expects Chrome:

    [TestClass]
    [ExcludeFromCodeCoverage]
    [DoNotParallelize]
    [TestCategory(TestCategories.Playwright)]
    public class PlaywrightConfigTests
    {
        /// <summary>
        /// Clear all configuration overrides
        /// </summary>
        [TestInitialize]
        public void Setup()
        {
            Config.ClearOverrides();
        }

        /// <summary>
        /// Get expected WebBase configuration
        /// </summary>
        [TestMethod]
        public void GetBrowser()
        {
            Assert.AreEqual("Chrome", PlaywrightConfig.GetBrowserName());
        }

        [DataTestMethod]
        [DataRow("Chrome")]
        [DataRow("Chromium")]
        [DataRow("Firefox")]
        [DataRow("Edge")]
        [DataRow("Webkit")]
        public void ConfigBrowserName(string browserName)
        {
            Config.AddTestSettingValue("Browser", browserName, ConfigSection.PlaywrightMaqs);
            Assert.AreEqual(browserName, PlaywrightConfig.GetBrowserName());
        }
}

Replace Troy's Axe Nuget Reference with Deque

Change nutget reference of Troy's repo to this one:
https://github.com/dequelabs/axe-core-nuget

The NuGet package will be deprecated and https://www.nuget.org/packages/Deque.AxeCore.Selenium/ will be set as the alternate package

Update drawing usage in web service tests

If we update to System.Drawing.Common to 6.0.0, we get the following error on the build server:
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms.

See https://aka.ms/systemdrawingnonwindows for more information.

We likely need to move off System.Drawing.Common.

Change MAQS acronym

The MAQS acronym should change
from:
"Magenic's automation quick start"
to:
"Modular automation quick start"

Update System.Data.SqlClient to Microsoft.Data.SqlClient

From https://learn.microsoft.com/en-us/sql/connect/ado-net/introduction-microsoft-data-sqlclient-namespace?view=sql-server-ver16

The Microsoft.Data.SqlClient namespace is essentially a new version of the System.Data.SqlClient namespace. Microsoft.Data.SqlClient generally maintains the same API and backwards compatibility with System.Data.SqlClient

This would give us access to new and helpful functionalities like setting the Command Timeout directly from the Connection Strings. MAQS does currently support setting the Command Timeout but this needs to be set for every Query method call. This would help us support long running queries from specific databases.

Update in: https://github.com/CognizantOpenSource/maqs-dotnet/blob/main/Framework/BaseDatabaseTest/Providers/SQLServerProvider.cs

Add the ability to JsonSerializerSettings to WebServiceUtils.DeserializeJson<T>

Existing implementation to workaround the issue.

// Take care of null and missing values encountered during deserialization
var settings = new JsonSerializerSettings
{
	NullValueHandling = NullValueHandling.Ignore,
	MissingMemberHandling = MissingMemberHandling.Ignore
};
var jsonString = responseMessage.Content.ReadAsStringAsync().Result;

return JsonConvert.DeserializeObject<MyObject>(jsonString, settings);

The existing WebServiceUtils does not have the ability to add JsonSerializerSettings to assist with different object mappings coming back

Add Nuget push

Get packages and pipelines ready to push to nuget.org

Update MSTest to v3

A version 3 of MSTest and its related packages (MSTest.Framework and MSTest.TestAdapter) have been released. MAQS is currently in use at RSM for test automation, and they would like to take advantage of features in version 3.

I tried just updating the packages in a branch off of main, and it looks like there already are some breaking changes to Assert.AreNotEqual and Assert.AreEqual when comparing two Object instances that folks will have to be aware of when upgrading.

Is it possible for this to make it into the next release? Are there any other obstacles to upgrading MSTest to v3?

Thanks,

Brannen

Config file not being read properly

I am running into an issue where SeleniumMaqs::Browser is not being read properly from appsettings.json. The error is only happening in JetBrains Rider, but as this is a widely used C# IDE this seems like something worth fixing.

Steps to reproduce:

  1. Using the MAQS Templates generate a Composite project
  2. Change SeleniumMaqs::Browser from Chrome to Edge
  3. Open solution in VisualStudio or VSCode
  4. Run test SeleniumTests::EnterValidCredentialsTest
    a. Expected: Test runs in Edge
    b. Actual: Test run in Edge
  5. Open solution in JetBrains Rider
  6. Run test SeleniumTests::EnterValidCredentialsTest
    a. Expected: Test runs in Edge
    b. Actual: Test run in Chrome

This is only a selenium issue. If I change PlaywrightMaqs::Browser from Chrome to Edge and run PlaywrightTestsVSUnit::EnterValidCredentialsTest then, as expected, the test runs in Edge.

EDIT:

This ended up being a settings issue. There was a .runsettings file from a different project overriding the default configs.

Templates Install Fails

I tried following directions in the documentation to install the templates and get this error. All I did was install the latest .NET SDK and then run the command in the MAQS 9.0.0 documentation. Did I do something wrong or am I missing something?

image

Edit:

I was able to get this to work by adding the version explicitly.

dotnet new --install CognizantSoftvision.Maqs.Templates::9.0.0

This still seems like an issue. Either in configuration or documentation.

Appium 2

Appium 2 has been released for a while now, but there has been no update to the released version in MAQS. Is an update being worked on to the released Appium 2 version?

Unable to execute test cases for Chrome Verion 115+

Hi Team,
Due to Chrome browser changes, unable to execute test cases for Chrome V115+ in local.

Exception -> Your web driver may be out of date or unsupported. ---> System.Net.WebException: The remote server returned an error: (404) Not found.

Might require some changes in the framework at

1.ChromeDriverServices (new ChromeDriverDownloadUrl for driver download ->
https://googlechromelabs.github.io/chrome-for-testing/)

  1. Additional changes to incorporate the usage of Chrome.exe for testing

Kindly help.

Thanks,
Dbedutta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.