Appium Beginner Tutorial | How to add extent reports in Appium Java project

  Рет қаралды 31,902

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер
@xXMrThomasXx
@xXMrThomasXx 5 ай бұрын
Really Really :D Thx for the all course. Thanks to you I am ready to training this topic and find better job. For better knowledge I go to the Appium 2 but for now I have good foundations to mobie testing.
@RaghavPal
@RaghavPal 5 ай бұрын
Great to know this Thomas.. and thank you
@town_trader
@town_trader Жыл бұрын
Watched all 21 video... Even lacks ₹ course cannot explain like this..... Thanks Raghav❤ "Live Long"
@RaghavPal
@RaghavPal Жыл бұрын
So nice of you Swapnil. Humbled
@kartikbhat2633
@kartikbhat2633 Күн бұрын
Thanks Raghav!
@RaghavPal
@RaghavPal Сағат бұрын
glad to know this helped you Kartik Thanks
@imuseoluwaamuzu3978
@imuseoluwaamuzu3978 Жыл бұрын
I appreciate the series, very informative and helpful. Thank you Raghav
@RaghavPal
@RaghavPal Жыл бұрын
So nice of you
@kirteshpaliwal3121
@kirteshpaliwal3121 4 жыл бұрын
hiii raghav i would like to say, you are very great and humble person. i can see your dedication and hard work for us. please keep it up 🙏 and help a students who are not able to spend there money in this all types of courses. Your work just like "निस्वार्थ सेवा"l Actually you are some hidden super heroes of under privileged students.
@RaghavPal
@RaghavPal 4 жыл бұрын
Thanks a ton Kirtesh, Once you get this knowledge, do share with as many people as you can.
@kirteshpaliwal3121
@kirteshpaliwal3121 4 жыл бұрын
@@RaghavPal sure.
@iceAlien11
@iceAlien11 Жыл бұрын
Explain so clearly. Can you make video for multiple classes with single Extent Report?
@RaghavPal
@RaghavPal Жыл бұрын
Sure, I will check
@i_am_reshad
@i_am_reshad 3 жыл бұрын
finished all videos in this playList. Thank you
@RaghavPal
@RaghavPal 3 жыл бұрын
Great job! Rashad
@karate-Web-UI
@karate-Web-UI 3 жыл бұрын
how we can run same test on multiple devices? can you share such video?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Jaivir, you can do a local setup or can take help from cloud services like browserstack, saucelabs, pcloudy, kobiton etc
@karate-Web-UI
@karate-Web-UI 3 жыл бұрын
@@RaghavPal okay, can you please help me out through video to build this?? If we would like to do the same both.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi have some browserstack and saucelabs integration video with the Selenium java framework, but the basic process should work same here as well. Can find in this playlist - kzbin.info/aero/PLhW3qG5bs-L8oRay6qeS70vJYZ3SBQnFa
@sonm-qy3sj
@sonm-qy3sj 4 жыл бұрын
Thank u so much sir This is one of the best series of Appium.
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad to hear that Sonam, you can check more here - automationstepbystep.com/
@sonm-qy3sj
@sonm-qy3sj 4 жыл бұрын
@@RaghavPal ok sir..
@Mostfavoured01
@Mostfavoured01 2 жыл бұрын
Your tutorial is well put together and properly delivered, helped me a great deal
@RaghavPal
@RaghavPal 2 жыл бұрын
Happy to know this Daniel
@Praveenkumar-gy7wt
@Praveenkumar-gy7wt 4 жыл бұрын
You are awesome raghav.. You are an inspiration. I'm grateful😇
@RaghavPal
@RaghavPal 4 жыл бұрын
Thank you so much Praveen, Humbled
@SHOVALSO
@SHOVALSO 4 жыл бұрын
Raghav - thank you for this awesome series of appium automation.
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome Shoval
@sunilpandey-h3g
@sunilpandey-h3g Жыл бұрын
Hi Raghav First and foremost, thank you for the lovely free content; could you please advise me on whether this series is sufficient to begin appium testing?
@RaghavPal
@RaghavPal Жыл бұрын
Hi Sunil, Yes, this will be enough to start with Appium Testing
@rinamishra04
@rinamishra04 3 жыл бұрын
Very informative and complete series on Appium.It really helped me a lot to create POCs for my upcoming projects. Thank you, will keep waiting for advance videos.
@RaghavPal
@RaghavPal 3 жыл бұрын
So happy to know Rina
@KavaRouse
@KavaRouse 4 жыл бұрын
Hello Raghav!!! How are u? Could you please help me my friend... Do we have any existing ways to run ios automation remotely (Docker for example) is it possible? Or maybe any other ways?
@alexkirichenko2111
@alexkirichenko2111 4 жыл бұрын
Hi! Also interested in this. Because for now I can only run locally my iOs tests(((
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kava, I have a docker tutorial here - automationstepbystep.com/ For your specific use case will have to explore more online. I will try to create a session if I get some time
@bhavikavyas4933
@bhavikavyas4933 4 жыл бұрын
Really very useful session and infact all sessions are very helpful and easy explained, Thank you so much Raghav.
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome Bhavika
@NamiAdl-r3i
@NamiAdl-r3i 10 ай бұрын
Great tutorial Thanks Raghav
@RaghavPal
@RaghavPal 10 ай бұрын
Thanks a lot Nami
@irha4418
@irha4418 2 жыл бұрын
Sir can u tell me this playlist is enough for appium or we have to watch more tutorial for appium after this playlist?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Irha, it is enough to get started with any appium project, as you work in the project, you may need to add more and you can accordingly search and add, this will create foundation for any appium project
@irha4418
@irha4418 2 жыл бұрын
@@RaghavPal okay sir thanku so much now i am learning the rest assured
@Hidayat8412
@Hidayat8412 5 жыл бұрын
Thank you for the video, this really helps me, can you add more learning videos about automation with Appium
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome. Sure, you can find more videos here - automationstepbystep.com/online-courses/
@lucia_valik
@lucia_valik Жыл бұрын
Thank you very much for great tutorials!! Could please help me how to launch app directly on specific screen? The app has a welcome screen, with 2 buttons- signup and signin. The app has only one activity for the whole app- the MainActivity. So how do i launch app directly on, for example, sign in screen without loading welcome screen and then clicking on 'sign in' button? If i understand it correctly, I could get there by specifying LoginActivity in desired capabilities, if there would be one. I was trying to find solution but i'm totally clueless. Thank you.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Lucia, If the app has only one activity and you want to launch the app directly on a specific screen without loading the welcome screen, you can try using the Appium Desired Capabilities to launch the app on the sign-in screen. Here's how you can do it: First, launch the app normally and navigate to the sign-in screen. Use the Appium Desktop app to inspect the sign-in button on the screen and get its resource ID or XPath. Open your Appium test script and set the desired capabilities to launch the app directly on the sign-in screen, using the resource ID or XPath of the sign-in button. DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability("platformName", "Android"); caps.setCapability("deviceName", "your_device_name"); caps.setCapability("appPackage", "com.your.app.package"); caps.setCapability("appActivity", "com.your.app.package.MainActivity"); caps.setCapability("noReset", true); caps.setCapability("automationName", "UiAutomator2"); caps.setCapability("appWaitActivity", "com.your.app.package.SignInActivity"); caps.setCapability("appWaitPackage", "com.your.app.package"); caps.setCapability("newCommandTimeout", 300); caps.setCapability("autoGrantPermissions", true); caps.setCapability("disableWindowAnimation", true); caps.setCapability("appWaitDuration", 5000); caps.setCapability("uiautomator2ServerLaunchTimeout", 120000); AndroidDriver driver = new AndroidDriver(new URL("localhost:4723/wd/hub"), caps); In this code snippet, we have used the DesiredCapabilities class to set the desired capabilities for launching the app directly on the sign-in screen. The appActivity is set to the MainActivity of the app and the appWaitActivity is set to the SignInActivity. This will launch the app directly on the sign-in screen, skipping the welcome screen. You can customize the desired capabilities according to your app and device configuration. I hope this helps you to launch the app directly on a specific screen using Java and Appium.
@lucia_valik
@lucia_valik Жыл бұрын
@@RaghavPal Thank you for your comprehensive reply. However, I don't understand where will I get SignInActivity when there's no SignInActivity, just the MainActivity. Also, where do i put signin button xpath that you mentioned i need to get? In this specific case it doesn't make such a difference, but i have a robust app with more than 20 screens. I've already written all the page objects but there's no sense that every test would start at the main screen. In the web testing it's easy, driver.get(url) will get the job done.
@RaghavPal
@RaghavPal Жыл бұрын
I will need to check practically to get more details and inputs and that may not be possible for now, I will suggest to try at your end and take some help from online resources
@lucia_valik
@lucia_valik Жыл бұрын
@@RaghavPal Hey Raghav, thanks for reply. I've already find out that it's possible only if the app has the ability to do deep linking.
@afgaiel
@afgaiel 3 ай бұрын
Many thanks, but I followed you but discovered that initialization of reporteSetup() is missing , may I have something wrong.
@RaghavPal
@RaghavPal 3 ай бұрын
Will need to check the details and steps.. Try checking with some online examples
@lakshmikanthlucky5559
@lakshmikanthlucky5559 4 жыл бұрын
The video so much helpful for me and I am thankful to you for this. I tried the way you showed me and its working fine..
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad to hear that
@lakshmikanthlucky5559
@lakshmikanthlucky5559 4 жыл бұрын
@@RaghavPal Hi Sir, please share me the Appium interview questions and could you please share the Appium resume to luckylakshmikanth91@gmail.com
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, It will come on the channel when I create it. Do Subscribe to get notification
@lakshmikanthlucky5559
@lakshmikanthlucky5559 4 жыл бұрын
@@RaghavPal already subscribed to the channel sir:)
@muhammadmamduhabdullah9920
@muhammadmamduhabdullah9920 5 жыл бұрын
First i wanna thank you for this awesome series, Second, i wonder if you'll complete the series & if not, What neat reliable resources would you recommend to complete learning Appium from? Last, i want to master Test Automation, I'm pretty good in Java, I've started learning the basics of Selenium then stopped (due to work pressure) and completed this Appium series, so the question is: To master Test Automation, Where should i start from? Where should i end (if there's an end)? What should i pass by during this journey ?! Again thanks & sorry for the long questions.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Muhammad, you're welcome and thanks for your message. As of now there are 21 videos in Appium playlist and I will add more in future as I get some time. I will suggest that you go through all the videos and then if you have a specific topic not covered here, you can take some online help. You can restart your learning process, Take one topic and complete it. You can do Selenium with Java and Python, then Appium and API testing. Can check all here - automationstepbystep.com/online-courses/
@alfredpolanco4670
@alfredpolanco4670 3 жыл бұрын
Bro you are the best!!
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks for the kind message Alfred
@oram8787
@oram8787 5 жыл бұрын
Thanks alot Raghav. I have one qsn Raghav, how to get the device ID dynamically during run time and put in desired capabilities instead of hard coding??
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi, for this you will need to add code to run commands like discuss.appium.io/t/how-to-get-device-id/8648/7 java.lang.Runtime rt = java.lang.Runtime.getRuntime(); // Start a new process: UNIX command ls java.lang.Process p = rt.exec(“adb devices”); // Get process’ output: its InputStream java.io.InputStream is = p.getInputStream(); java.io.BufferedReader reader = new java.io.BufferedReader(new InputStreamReader(is)); // And print each line String s= (reader.readLine());
@vekildh
@vekildh 5 жыл бұрын
Very nice @Raghav. Can we use it with Appium + Junit also in similar way?
@RaghavPal
@RaghavPal 5 жыл бұрын
You can use Vivek
@suruchisingh4167
@suruchisingh4167 3 жыл бұрын
Hi Raghav, Thanks a lot for this useful video. Can we save this report in our local machine and send it over email? please reply.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Suruchi, yes you can
@ribeirowelmoreno
@ribeirowelmoreno 4 жыл бұрын
Hello, Raghav! How are you? Could you provide the project which you are using in thise video? Or show me how you set the capabilities for iOS? Thank you and best regards!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Wellynton, check here github.com/Raghav-Pal/AppiumDemoProject
@yemiolu9302
@yemiolu9302 5 жыл бұрын
Hi Raghav, Great videos. Where can I purchase the rest of the video?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Yemi, you will get here - automationstepbystep.com/online-courses/
@lakshmikanthlucky5559
@lakshmikanthlucky5559 4 жыл бұрын
Hi sir, Please make a video for attaching the screenshots in report and using listeners class aswell. Thanks in advance
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Lakshmi, will do
@kironmiah1256
@kironmiah1256 4 жыл бұрын
Hello Sir, Thanks for your class I really appreciate you. currently I am working on Java project with appium for mobile app and I want to add extent report with my project. so how can I do that. This video title said How to add extent reports in Appium Java project but you're using maven project and I couldn't make it. so can u give me the guideline please? Thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kiron, adding of Extent Reports is a separate process, I hope you have seen other videos of this session. Check here - automationstepbystep.com/
@kironmiah1256
@kironmiah1256 4 жыл бұрын
@@RaghavPal Thank you
@shahar578
@shahar578 4 жыл бұрын
Thank you Raghav for all the useful videos. I would like to see more videos about automation with appium with more information about testng, extent report and design patterns like page object model and how to apply all of them in appium automation. Maybe even advenced automation video playlist for appium. The last video you uploaded about appium was this video about a year ago. There is any planning to upload more videos about appium? Thanks.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, I will add more advanced videos. You will find all here - automationstepbystep.com/
@anamicasingh6837
@anamicasingh6837 3 жыл бұрын
Hi Raghav, Thankyou for such wonderful video it's much useful for me. I m facing issue that my report screenshot are delayed by 10sec . Could you please help to overcome this issue
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Anamica, just check if you have any delay in your script, Also check the logs
@karloxvilla
@karloxvilla 4 жыл бұрын
Hi Raghav. If the current version for ExtentReports is 5.0.3 what instruction can use to replace "ExtentHtmlReporter". I have a doubt because with the last version 5.0.3 this instruction isn´t recognized.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Karlox, i will check, Meanwhile, pls go with the documentation and can check online examples
@sunakshiprakash459
@sunakshiprakash459 3 жыл бұрын
hey, while adding "ExtentTest test = extent.createTest("MyFirstTest", "Sample description");" it gives null pointer exception error, what to do?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sunakshi, will need to check the logs in details, must have missed something
@prateekvashishth444
@prateekvashishth444 4 жыл бұрын
Hi Raghav.. Thanks for wonderful video. and its really helps lot for learning appium. But we want to learn appium with native app. Please share video or link for example with native app as well. So we can practice on native app too.
@RaghavPal
@RaghavPal 4 жыл бұрын
I will plan session on that Prateek
@prateekvashishth444
@prateekvashishth444 4 жыл бұрын
​@@RaghavPal Thanks for reply.. i have one question. In my native app when i checked activities then i found lots of activities through app info app. So i choose activity related to splash screen. In my app first screen appears as splash screen than user click on skip button then comes to login screen. and activity folder also include activity for login screen as well. So how can we add multiple app activity in desired capabilities??
@positive.boom-mind
@positive.boom-mind Жыл бұрын
when i run one by one test case, this report generate as a new one, how could i append it? instead of creating a new one?
@RaghavPal
@RaghavPal Жыл бұрын
Umayanga To append your Extent Reports in Appium Java, you can use the following steps: 1. Create a new ExtentReports instance, and specify the path to where you want to save the report. 2. For each test case, create a new ExtentTest instance. 3. Use the ExtentTest instance to log your test steps and results. 4. When all of your test cases are finished, flush the ExtentReports instance to generate the report. Here is an example of how to append Extent Reports in Appium Java: ```java import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.reporter.ExtentSparkReporter; import io.appium.java_client.ios.IOSDriver; public class AppiumJavaTest { private static ExtentReports extent; public static void main(String[] args) throws Exception { IOSDriver driver = new IOSDriver(); // Create a new ExtentReports instance extent = new ExtentReports("ExtentReport.html", false); // Start the test case ExtentTest test = extent.createTest("My Test Case"); // Perform the test steps driver.get("www.example.com"); test.pass("Navigated to the Google homepage"); // Flush the ExtentReports instance to generate the report extent.flush(); } } ``` The `false` parameter in the `ExtentReports` constructor specifies that we want to append the report, instead of creating a new one. You can run your test cases one at a time, and the ExtentReports instance will append the results to the same report. I hope this helps
@positive.boom-mind
@positive.boom-mind Жыл бұрын
Hi @RaghavPal thanks a lot, for your immediate response.
@pavithrar1725
@pavithrar1725 3 жыл бұрын
Hi sir.I have a situation where i have 10 test cases in project and i need to send report of those 10 test cases in single mail to my senior. Report should contain which test cases i have executed,time, android or not. Can u help me on this.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Pavithra, some common reporting lib are extent and allure, you can check the options in them and discuss with your senior if it works. For something very custom, you will need to add code for creating the report
@pavithrar1725
@pavithrar1725 3 жыл бұрын
@@RaghavPal thank u
@pavithrar1725
@pavithrar1725 3 жыл бұрын
@@RaghavPal can u share any supporting links
@RaghavPal
@RaghavPal 3 жыл бұрын
both for extent and allure you will get online examples, for anything custom I too will need to search and check
@Captured_Beauty
@Captured_Beauty 5 жыл бұрын
Hi Raghav, Can you please make a video on how to automate maps like zoom in and zoom out, inspect element from maps that would be really helpful.
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Ahmed, I will check on that.
@Captured_Beauty
@Captured_Beauty 5 жыл бұрын
@@RaghavPal Actually I got this link--> appiumpro.com/editions/67 it's confusing. Based on the code can you please make a video. Thank You
@jyotsnachebrolu1338
@jyotsnachebrolu1338 Жыл бұрын
is there any tutorial for how to share this report to others as pdf?
@RaghavPal
@RaghavPal Жыл бұрын
Hi Jyotsna, Yes, you can export the Extent Reports generated by your Appium project in PDF format and share them with others One way to do this is by using the ExtentReports library's built-in feature to export the report to a PDF file. /* extent.flush(); extent.close(); extent.exportReport().toPdf(new File("path/to/save/report.pdf")); */ The flush() method writes all log events to the report, the close() method ends the report, and the exportReport() method exports the report to a PDF file.
@ritvikraj9623
@ritvikraj9623 4 жыл бұрын
Hi Raghav. Thanks for the videos. Really helpful. Just want to tell you to add one more video in the list regarding how to test the native apps by providing apk files in the framework as you said in one of the video of this list, I think that one video is missing. Thanks
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ritvik, thanks for watching. I will do that.
@ritvikraj9623
@ritvikraj9623 4 жыл бұрын
@@RaghavPal I am waiting for the video
@cesarsasaki7450
@cesarsasaki7450 5 жыл бұрын
Hi how can I add screenshots to the steps? using extentHTML! Great videos!
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Cesar, this may help you - stackoverflow.com/questions/50923373/extent-report-3-add-screenshot www.softwaretestingmaterial.com/screenshots-extent-reports/
@kirteshpaliwal3121
@kirteshpaliwal3121 4 жыл бұрын
hello raghav sir thanks for help, i have Question -> how can we automate scanning a physical qr code with the help of qr-code image. actually i have android native app in this app i need to scan qr code with the help of scanner and i am not able to automate it. the functionality of this app is just like a paytm scanner.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Kirtesh, no experience of this. Will have to check online
@kirteshpaliwal3121
@kirteshpaliwal3121 4 жыл бұрын
@@RaghavPal thanx for the attention , please inform me if you get any solution of it.
@crickettesters7446
@crickettesters7446 Жыл бұрын
How to run multiple classes in a suite?
@RaghavPal
@RaghavPal Жыл бұрын
In Appium, you can run multiple test classes as a suite by using TestNG framework. Here are the steps to run multiple classes in a suite: Create a testng.xml file and add the following code: Replace "com.packageName.TestClass1" and "com.packageName.TestClass2" with the actual package and class names of your test classes. Run the testng.xml file as a TestNG suite. In Eclipse, you can right-click on the testng.xml file and select "Run As" > "TestNG Suite". This will execute both the test classes as a suite.
@ardiansyahaziz1331
@ardiansyahaziz1331 3 жыл бұрын
hi, i got problemb when ExtentTest test1 = extent.createTest("tesname"); it could be null, can u help to how solve? my code stuck at that line
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Ardiansyah, pls check if you have imported the required lib, Also check the detailed logs
@ardiansyahaziz1331
@ardiansyahaziz1331 3 жыл бұрын
@@RaghavPal ok thank u ,i will tried pal
@sifat19
@sifat19 5 жыл бұрын
very helpful video !
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks for watching Md. Sifat
@sasi11889
@sasi11889 5 жыл бұрын
Really good explanation thanks sir
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Sasi
@kshamapandey4016
@kshamapandey4016 5 жыл бұрын
Hi, I am getting step count 0 in report. Step count should show some value, in my case. What should I do to get step count ?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Kshama, pls check and show me how have you initialised extent reports and how are you logging extent reports statements
@kshamapandey4016
@kshamapandey4016 5 жыл бұрын
@@RaghavPal Hello, Where should I share the code?
@RaghavPal
@RaghavPal 5 жыл бұрын
You can copy here
@kshamapandey4016
@kshamapandey4016 5 жыл бұрын
@@RaghavPal package com.components; import java.io.IOException; import org.testng.annotations.AfterSuite; import org.testng.annotations.BeforeSuite; import org.testng.annotations.Test; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.ExtentTest; import com.aventstack.extentreports.MediaEntityBuilder; import com.aventstack.extentreports.Status; import com.aventstack.extentreports.reporter.ExtentHtmlReporter; public class ExtentRepDemo { ExtentHtmlReporter htmlReporter; ExtentReports extent; @BeforeSuite public void setUp() { // start reporters htmlReporter = new ExtentHtmlReporter(System.getProperty("user.dir") +"/Results/extent.html"); // create ExtentReports and attach reporter(s) extent = new ExtentReports(); extent.attachReporter(htmlReporter); } @Test public void test1() throws IOException { // creates a toggle for the given test, adds all log events under it ExtentTest test = extent.createTest("MyFirstTest", "Sample description"); // log(Status, details) test.log(Status.INFO, "This step shows usage of log(status, details)"); // info(details) test.info("This step shows usage of info(details)"); // log with snapshot test.fail("details", MediaEntityBuilder.createScreenCaptureFromPath("screenshot.png").build()); // test with snapshot test.addScreenCaptureFromPath("screenshot.png"); // calling flush writes everything to the log file } @AfterSuite public void tearDown() { extent.flush(); }}
@kshamapandey4016
@kshamapandey4016 5 жыл бұрын
The report is getting generated but steps count is showing 0 and only one pie chart is coming. I am not getting what I have missed. My second question is : I am generating extent report for android and ios app. " Is there any way to keep extent report in separate class and test cases in separate class. Means one extent report common for all test cases." I am new to this, please let me know what videos and tutorials I should follow. Thank You!!
@azammousavian7825
@azammousavian7825 5 жыл бұрын
Hi Raghav, I want to get HTTP response code in Appium and consider it with java, I know it is possible in android with "logcat". How it is possible in IOS?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Azam, You can use idb github.com/facebook/idb/blob/master/README.md stackoverflow.com/questions/57203251/is-there-any-command-to-get-ios-device-logs-like-using-logcat-we-can-get-androi
@aravindkumar1495
@aravindkumar1495 5 жыл бұрын
Sir when to use test.log and test.info and test.fail and where we need to use all these
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Aravind, these methods are used to log information and can make test as fail. These can be used explicitly when you want to test some specific condition. For example you want to verify a text on the screen and if it is not available you want to fail the test with some message then you can use test.fail("message"). You can use if else block here.
@sonm-qy3sj
@sonm-qy3sj 4 жыл бұрын
Plz upload the interview questions also.
@RaghavPal
@RaghavPal 4 жыл бұрын
I will do Sonam
@sonm-qy3sj
@sonm-qy3sj 4 жыл бұрын
@@RaghavPalokk sir.. i will wait for this
@abhijeetsingh089
@abhijeetsingh089 4 жыл бұрын
Sir can you start a new course on RPA AUTOMATION ANYWHERE
@RaghavPal
@RaghavPal 4 жыл бұрын
I have added this to my list Abhijeet
@abhijeetsingh089
@abhijeetsingh089 4 жыл бұрын
@@RaghavPal I cannot find any playlist for RPA.. Please assist
@harishrt7748
@harishrt7748 4 жыл бұрын
API and appium Which one is best
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Harish, they are two diff platforms,
@harishrt7748
@harishrt7748 4 жыл бұрын
@@RaghavPal sir I completed java selenium. Next which course is better API r appium
@RaghavPal
@RaghavPal 4 жыл бұрын
Go for API
@harishrt7748
@harishrt7748 4 жыл бұрын
@@RaghavPal thanks
@anjumariyageorge3604
@anjumariyageorge3604 5 жыл бұрын
Thankyou raghav
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Anju
@shivaagarwal7406
@shivaagarwal7406 6 ай бұрын
Thanks a lot :)
@RaghavPal
@RaghavPal 6 ай бұрын
You're welcome!
@duhuynh176
@duhuynh176 4 жыл бұрын
How can we mark when a test case fail? Help me plz!
@RaghavPal
@RaghavPal 4 жыл бұрын
You will need to add the code or logs in condition or exception block
Appium Automation Framework from scratch | Java | Maven | TestNG
47:43
Automation Step by Step
Рет қаралды 231 М.
P27 - Default reports generated by TestNG | TestNG | Testing Framework |
24:23
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Appium Beginner Tutorial 16 | How to create iOS automation testing project in java
20:02
P3 - Create a basic extent report | Extent Reports |
25:33
H Y R Tutorials
Рет қаралды 26 М.
Appium Beginner Tutorial 14 | AppiumStudio How to create first test
6:20
Automation Step by Step
Рет қаралды 56 М.
Mobile Automation Testing using WebdriverIO
1:29:15
SDET Unicorns by Dilpreet Johal
Рет қаралды 37 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
School Of Basics | What is an API | API testing interview questions
7:58
Automation Step by Step
Рет қаралды 437 М.
P6 - Attach screenshots to the extent reports | Extent Reports |
28:58
H Y R Tutorials
Рет қаралды 24 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН