Part 10 - Automated Tests in Multiple Environments - Manage without even writing Single Line of Code

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 80

  • @heyrmi
    @heyrmi 2 года назад +7

    Your knowledge is amazing. It is so hard to get all this info in the automation testing domain. I wonder how many docs you might have read to understand all this.
    Thank you so much for breaking it in easy to understand manner for the rest of the community.

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      I am really glad it helped you. 😀Yes I learned it the hard way.

    • @sp38860
      @sp38860 7 месяцев назад

      very true

  • @fernanda6194
    @fernanda6194 7 месяцев назад +1

    Awesome video. Thank you very much for sharing it with us

  • @devashishrawat6555
    @devashishrawat6555 2 года назад +3

    Enjoyed the video. I love how clean the code is and even the formatting with aligned indents and spaces (fulfils my symmetry obsessions!! haha).
    Cheers for the great video.

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад +1

      Glad you enjoyed it. Please spread about the channel tp your friends

  • @mlungisimabobo4544
    @mlungisimabobo4544 6 месяцев назад +1

    WOW...thank you so much. So easy to follow. You are very good at what you do. I just need to practice this as it is a bit complex. But again...thank you♥

  • @venkatakoripalli140
    @venkatakoripalli140 2 года назад +1

    Great video for properties management.

  • @Naveenacheanz1
    @Naveenacheanz1 2 года назад +1

    Great, implemented in my project. Worked Great!!

  • @Nillansan
    @Nillansan 10 месяцев назад +1

    Thank you so much for sharing this, incredibly helpful

  • @ChauhanManish1802
    @ChauhanManish1802 2 года назад +1

    Great going

  • @binitarathour3330
    @binitarathour3330 2 года назад +1

    Hello Sir, Thanks a lot! great! waiting for live training

  • @sivatejakesarla7627
    @sivatejakesarla7627 2 года назад

    Superb video, this is really a painful area and you made it pretty easy 👌

  • @rajesho9772
    @rajesho9772 2 года назад +1

    Good info 👍

  • @praveentu1865
    @praveentu1865 2 года назад +1

    Very much useful!

  • @sivak8519
    @sivak8519 2 года назад

    Nice one

  • @sivakumarparamasivam6165
    @sivakumarparamasivam6165 2 года назад +1

    Good content Amuthan.

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      What is it from springboot? We are only using owner library

    • @sivakumarparamasivam6165
      @sivakumarparamasivam6165 2 года назад

      @@TestingMiniBytes Yes. Sorry I confused with application properties file.

  • @aravindmr6827
    @aravindmr6827 2 года назад +1

    Wowwww…So Amuthan this can implemented to the existing automation framework development video which you have done..right?

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад +2

      Yes you can. I dint know this when I developed that.
      I am learning every day and sharing what I admire.

    • @aravindmr6827
      @aravindmr6827 2 года назад +1

      @@TestingMiniBytes Thank you.As we say,better late than never…learning so much from ur videos keep coming with more..😊

  • @poojapatange9520
    @poojapatange9520 2 года назад +2

    Hi sir, tutorials are ver helpful. Please can you guide how to add soft and hard assert failures to extend report

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      Using listeners, you can add failures to report. Watch my selenium framework playlist

  • @arunprasath1725
    @arunprasath1725 2 года назад +2

    Attakasam. Can we use this with json?

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад +1

      This library supports xml. I dont think it supports json.

  • @karthick5044
    @karthick5044 2 года назад +1

    great content!

  • @abdusbhuiyan4515
    @abdusbhuiyan4515 2 года назад +3

    Hi, By any chance you to teach selenium one on one? I really liked your video. Enjoyed every moment

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад +1

      www.testingminibytes.com/courses/selenium-java-with-docker-git-and-jenkins
      You can find the course I taught here. There are free videos available to watch before making your purchase

  • @elefteria8251
    @elefteria8251 Год назад +1

    Wow! Thanks a lot!

  • @MrJhlk
    @MrJhlk Год назад +1

    Hello Sir,
    Thank you for knowledge sharing, really useful content.
    May I ask, how to send a variable through the command line that depends on env variabale?
    For ex, -D{env}.baseURL, can i do that somehow? Although, I have in my framework stored separately qa.baseURL and test.baseURL, I want to have possibility to sent that value also through Jenkins. Thanks.

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад +1

      Could you please watch the part 1 of this playlist where I have explained this.
      To answer your question, you should pass
      mvn clean test -Denvironment=staging

  • @sivaprasadk2728
    @sivaprasadk2728 2 года назад +1

    Good content as always!!

  • @nehalchowdekar4604
    @nehalchowdekar4604 2 года назад

    Superb video sir,I have one small doubt, What should be added in @Config.sources to fetch value from VM argument?

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      Is that not environment property?

    • @nehalchowdekar4604
      @nehalchowdekar4604 2 года назад +1

      @@TestingMiniBytes like we sent -Dbrowser=chrome in VM arguments

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      @@nehalchowdekar4604 that is covred in the system properties. It should work

  • @JDPatel-io2ln
    @JDPatel-io2ln Год назад

    Excellent!!.. Thanks.
    As mentioned in video I'm able to run test and prod environments by editing run Configuration. I want to run from maven command , could please share maven command to change enviornments

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад

      Pass the variable as System variable.
      mvn clean test -Denv=staging

    • @JDPatel-io2ln
      @JDPatel-io2ln Год назад

      @@TestingMiniBytes Thanks for quick reply.. not working,, it always choose test env through maven command

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад

      @@JDPatel-io2ln ask your question in telegram group with screenshot

    • @kj9512
      @kj9512 Год назад

      @@JDPatel-io2ln I am having same issue. It is using test env instead of dev env

  • @KkB700
    @KkB700 2 года назад +2

    Does this works for java selenium webdriver with testNG

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      Yes why not

    • @KkB700
      @KkB700 2 года назад

      @@TestingMiniBytes iam trying to implement this method for the existing code, it is not supporting and we are extending all the testclasses to one of the base method,

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      @@KkB700 you should not use inheritance but composition to use this

    • @KkB700
      @KkB700 2 года назад +1

      @@TestingMiniBytes is there any video by using composition

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад +1

      @@KkB700 check my master framework playlist

  • @nikhiljadhav496
    @nikhiljadhav496 Год назад +1

    Hey thanks ,i really luv it. But thing is m getting error of URI is not absolute.. can u please guide me the same... evn i want declare that public static FrameworkConfiq configuration = ConfigFactory.create(Frameworkconfig.class)
    And config instance want user

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад

      Please ask your question in telegram group with screenshot.
      From my guess you have to add file: infront of path.

  • @eftikharuddin1023
    @eftikharuddin1023 2 года назад +1

    Hi sir, Can you please make a video about how to test any web services endpoint in multiple environment (Dev/QA/Stage) parallel using Java and REST Assured in TestNG framework. Thanks!

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад +1

      This knowledge can be applied to rest assured as well

    • @eftikharuddin1023
      @eftikharuddin1023 2 года назад

      @@TestingMiniBytes Thanks for your quick response. FYI i am new to automation and it would be great if you can make another video only for web service testing taking one REST endpoint as an example. Thanks!

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      @@eftikharuddin1023 just put your api env url with another name. Just try.

  • @akshayshah2106
    @akshayshah2106 2 года назад +1

    Hi, FrameworkConfig config = ConfigFactory.create(FrameworkConfig.class);
    The "create" is throwing an error - Bound mismatch The generic method create is not applicable for the arguments...
    Please guide amuthansakthivel .
    Regards.

  • @krishanuchakraborty3500
    @krishanuchakraborty3500 2 года назад +1

    Could you also pleae implement the same using gradle test task in build.gradle file?

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      You don't have to use anything like that here. Everthing is managed by the interface that we create.
      Why do you want to achieve this with a gradle task?

    • @krishanuchakraborty3500
      @krishanuchakraborty3500 2 года назад

      @@TestingMiniBytes Using Gradle to run the tests in multiple environments using Command line args.

  • @sureshkumarg5673
    @sureshkumarg5673 2 года назад +1

    Hi @Amudhan how to run this through cmd.... please....

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      mvn clean test -Denv=staging

    • @sureshkumarg5673
      @sureshkumarg5673 2 года назад

      Hi amudhan thanks for replying.... i tried but error showing "base uri cannot be null". there is any plugin need to pass env variable... please help me buddy i m struck with that

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      @@sureshkumarg5673 no, your error says you need to pass baseUri

    • @sureshkumarg5673
      @sureshkumarg5673 2 года назад

      yes.. i have two property file and try to pass dev uri from cmd prompt.... but it cant read that

    • @TestingMiniBytes
      @TestingMiniBytes  2 года назад

      @@sureshkumarg5673 what command you used.

  • @JeevaVvs
    @JeevaVvs Год назад +1

    I need to give this env from maven how to do it explain in one video

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад

      mvn clean test -Denvironment=staging

    • @JeevaVvs
      @JeevaVvs Год назад +1

      @@TestingMiniBytes thanks worked

  • @sanketnegi1
    @sanketnegi1 Год назад

    everything seems to work fine except the last part i.e @Key("${env}.base_url") seems to give null. it works when I give @Key("dev.base_url") .
    Could you tell me what am I missing? any import? or dependency

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад

      Are you passing env correctly

    • @sanketnegi1
      @sanketnegi1 Год назад

      @@TestingMiniBytes I have tried exactly as shown..
      Couldn't find the solution hence. Currently maintaining multiple properties files for each env

    • @TestingMiniBytes
      @TestingMiniBytes  Год назад

      @@sanketnegi1 Upload project in github and I can take a look. You should ask these questions in the telegram group

    • @surajrout4757
      @surajrout4757 3 месяца назад

      You must be using the lower version of Owner. Use version 1.0.12

  • @kritikakaushik2847
    @kritikakaushik2847 11 месяцев назад

    Dependancy is not working..not able to import class can anyone help

    • @TestingMiniBytes
      @TestingMiniBytes  11 месяцев назад

      Please ask question with code and error in telegram group