Hi Alex what do i do if my tests are not being discorvered?
@TechWithAlexDutaАй бұрын
Hi @ericksonimanzi, there may be several reasons, you can double check the following: -Packages installation (e.g. in .csproj file): NUnit, NUnit3TestAdapter, Microsoft.NET.Test.Sdk -Each test method must have the [Test] attribute, [TestFixture] (not mandatory in NUnit 3 if the class has [Test] methods) -Check that the test method access modifier is set to public -Ensure the solution builds successfully without errors (dotnet clean, dotnet build) -Update your libraries and .NET -Run Tests Using the .NET CLI (e.g. Navigate to your project directory, run dotnet test) => If tests are discovered and executed in the CLI but not in VS Code, the issue is likely with the VS Code extension or settings
@KE_1105Ай бұрын
Nice video. Helped a lot. Thanks
@Praskand_UpadhyayАй бұрын
What's the practical use of Playwright that you've used and appreciated and that has helped you?
@TechWithAlexDutaАй бұрын
@Praskand_Upadhyay I will mention few of those: robust selectors, running options(emulation, headless, command line arguments), fixtures, auto-waiting or specific to Python (Pytest integration)..
@Magdoulin2 ай бұрын
How to export the tests to run through Jupyter Notebook?
@0x000001012 ай бұрын
Спасибо, Александр!
@suen-tech2 ай бұрын
Its very helpfull. Thank you.
@TechWithAlexDuta2 ай бұрын
Glad to hear that!
@myfuntimemasti2 ай бұрын
Is there any chance can we run specific test through console or cmd? As we have use filter for test category ,do we have any filter for testname ="testname_here"
@menardsoliven21783 ай бұрын
Great tutorial! I almost there. I got problems in 2:58 timestamp. Can you help me? at 2:58 you have created "__init__. py" and it's fonts turned color green in your video. While I did the same thing, but the font color my "__init__. py" doesn't turn green, it's still white. What do I need to do to make it color green like in your video?
@leoromano97603 ай бұрын
Thanks Alex, much appreciated
@dnnnyxdxdxd46083 ай бұрын
foarte bun Alex mai astept si alte tutoriale !!!
@heyitsme21_4 ай бұрын
Why can't I find config.yaml file in the folder where I saved my .side?
@Rtexron4 ай бұрын
Hi Alex, Great video that help me to get into it! Had several problems during it, at first it was impossible to run the project because I had to change the c# executor map (scriptcs by dotnet run). Now, that everything is okai I could run the test from the command line but If I want to run the tests from the other method with .NET Core Test Explorer extension, it created tempCodeRunnerFile.cs file with a Wait string inside and the project seems to have build problems, any ideas to fix this?
@ViralPanchal975 ай бұрын
PS C:\Users\viral\selenium_python_project_22_aug> pytest -m selenium pytest : The term 'pytest' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pytest -m selenium + ~~~~~~ + CategoryInfo : ObjectNotFound: (pytest:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
@vineetTrip4 ай бұрын
@MuhammadMaazKhan-d1h check the video again where it is mentioned to add pytest scripts path to PATH env variable, once done restart vscode to pickup new PATH variable. it should work now.
@chinmayk26575 ай бұрын
How you show how 3 testcase execution and report generated in extent report-Thanks
@gangaravi78865 ай бұрын
This is awesome. Really it helps me a lot.
@TechWithAlexDuta5 ай бұрын
Glad it helped! Thanks for taking the time to mention it.
@chinmayk26575 ай бұрын
multiple test case execution and reporting in single extent report - any video pls give the link
@hoang97anh5 ай бұрын
What is your opinion comparing extent report and allure report
@carlos_gongora6 ай бұрын
Nice demo! Thanks a lot, very useful!!
@TechWithAlexDuta5 ай бұрын
Glad it was helpful!
@andreandrade33536 ай бұрын
Amazing approach, very concise and straightforward, thanks for that!
@TechWithAlexDuta6 ай бұрын
Glad it was helpful!
@benchakalaka6 ай бұрын
Life saver! Thank you
@ElmiraAlizadeh-j5o7 ай бұрын
I run the code without wrong but nothing run in terminal (The massage is ,No tests ran in ..)
@HarshMishra-f7n7 ай бұрын
I am currently using selenium IDE and I was recording a test case in which I am asking for some fields, I gave all fields but one field was asking for yaml content and I gave it in correct format but when I rerun the test case, the format of the content of yaml got spoiled, so is there any solution for this?
@artokilponen69897 ай бұрын
Just to help others who might run into the same problem as I did: If you get an error "import selenium could not be resolved" try View -> Command Palette... -> Python: Select Interpreter -> and select different options until you find one that works. (The one that works should be the one you get from terminal with "python --version" ) Hopefully this helps someone. Otherwise I think this video was a really good one, did what needed and didn't take an eternity with it.
@nehakumar-u2s7 ай бұрын
While running the code, getting some errors
@vipulkhandelwal34778 ай бұрын
How can I use this implementation with xunit framework?
@yevhenkomar8 ай бұрын
Selenium is ‘yesterday’, playwright is a future)))
@ankitSharma-dd2qz8 ай бұрын
Thankyou so much its a great Can you also made a video with Specflow
@77seban8 ай бұрын
That was great ..for me it is hard to code... this is advance like developer not like tester. All the best and thanks for tutorial. Your few first lesson was less complicated.
@aditi99chandrashekar938 ай бұрын
After I clicked on view-testing I am getting an error in terminal.(error:No tests found, check the SearchPattern in the extension settings.). can you please tell me how can i resolve this issue
@77seban8 ай бұрын
Thanks I am learning for my work ..but I need MSTest ? Is this the same ...but different framework.
@TechWithAlexDuta8 ай бұрын
Within this series I have been using NUnit testing framework, but after all you can use another testing framework which is more suitable for your context, there are many similar things between them.
@DamonSal-bv2rc8 ай бұрын
Hi Alex, can't find method "ScreenshotImageFormat.Png", is it allure method or something please help with this.
@skf-sfg-sts-23-ghfj-jfjf8 ай бұрын
Hi Alex, how to change the Timestamp on HTML reporter inside the test details when log status in ("Info", "Pass" or "Fail") , looks like yours has seconds? I have a date format like this "9:15 AM" on the Timestamp and would like to add seconds and millisecond. Thank you for your tutorials, they are very helpful.
@hareeshparuchuri69909 ай бұрын
Thanks for the video
@TechWithAlexDuta9 ай бұрын
Thank you for taking the time!
@VaibhavFarkadee9 ай бұрын
Thank you so much for explaining, explicity weight it was difficult to find as New version has updated support😊
@TechWithAlexDuta9 ай бұрын
Happy to help!
@vasilkarazhekov18059 ай бұрын
Nice and short tutorial, but guys, please add a reference to the source project by right-clicking the Dependencies under the project explorer in order to be able to access the source project classes.
@islahG269 ай бұрын
thanks for the tutorial! very helpful mate :)
@TechWithAlexDuta9 ай бұрын
Glad it helped!
@rogerkujur54519 ай бұрын
keep doing this learning automation from your video is easy and fast thanks sir
@rogerkujur545110 ай бұрын
thanks please provide a playlist
@TechWithAlexDuta10 ай бұрын
You can check on my channel the "Selenium Python" playlist :)
@swaps_spkr10 ай бұрын
My Test methods are parameterized (getting data from api) and passing it to Test method and performing Assert on each data to check if url has proper statusCode. I have added [Parallelizable(ParallelScope.Children)] to Test method. At Class level added [TestFixture] and [Parallelizable(ParallelScope.Fixtures]. the screenshot are not getting properly capture at particular point when assert is perform . Please suggest
@swaps_spkr10 ай бұрын
This is really helpful. Thanks a lot.
@TechWithAlexDuta10 ай бұрын
Glad it was helpful!
@ionion614710 ай бұрын
Wish this would have more viewers and reach. Simple and to the point, very well done!
@TechWithAlexDuta10 ай бұрын
Thank you :) I'll give it my all.
@GautamGoswami-r4n10 ай бұрын
Hi Alex, this command is not giving any reponse "dotnet sln add .\selenium_tests\" please help me"
@TechWithAlexDuta10 ай бұрын
I would suggest to double-check the paths & .NET version(dotnet --version), ensure that you have the necessary permissions to modify the solution file and add projects to it, or maybe you can manually edit the solution file (*.sln) to include the project.
@thilakshanbalachandran55356 ай бұрын
"dotnet sln add .\selenium\" Try this it will work
@ItsRani-i1y11 ай бұрын
Thank you
@rohodev11 ай бұрын
hi Alex, isn't it required also to install a ChromeDriver which version matches the installed chrome browser?
@TechWithAlexDuta11 ай бұрын
As of Selenium 4.6.0 the manual configuration of the driver is optional, if this is not happening it will be automatically handled by Selenium Manager. You can check one of my videos here about this: kzbin.info/www/bejne/iGKXqIt4ja9lh6c
@HazraFaiyaz11 ай бұрын
Which version of VSCode are you using? Does this work with the latest version?
@TechWithAlexDuta11 ай бұрын
It should work with the latest version of vs code (and not only). For this video I have used 1.86.2. Enjoy the journey and happy coding :)
@ivanarabome417211 ай бұрын
When a user clones the project how can they easily set it up, install the dependencies, and run it? Similar to when you clone a react project you run npm install or python that uses the requirements document to install dependencies
@TechWithAlexDuta11 ай бұрын
After you clone the project the setup requires minimum effort. Note: just make sure you have (the latest) .NET installed (e.g. how to install it: kzbin.info/www/bejne/jqLahoB9fJalqsk). Based on your sample: -for a python project you have 'pip' as the standard package manager and dependencies are defined in requirements.txt file; -for .NET you have NuGet as the default package manager and dependencies are defined in .csproj file (newer .NET projects) and you can restore them using "dotnet restore" or "dotnet build"(implicit restore); in terminal go to current project directory;
@ivanarabome417211 ай бұрын
@@TechWithAlexDuta yesss you’re a genius this is exactly what I want
@daysigalindo368811 ай бұрын
Hi Alex, is there a way to load the results into testrail using Allure.NUnit?
@JyothiVijayakumar-x1l Жыл бұрын
This solved my problem. Thanks a lot
@triciaaanderud8864 Жыл бұрын
This is good and easy to understand. The pace of your voice is easy to understand.