Posts

Showing posts with the label automation

Error: Failed to create scenario runner while using examples

Error: Failed to create scenario runner while using examples I am using Examples to enter the email but when I run the junit runner file it gives me the error: " Failed to create scenario runner" My Junit runner code: package Runner; import org.junit.runner.RunWith; import cucumber.api.junit.Cucumber; import cucumber.api.junit.Cucumber.Options; @RunWith(Cucumber.class) @Options(features="Features",glue={"stepdefinition"}) public class GmailRunner { } Here is my feature file: Feature: Smoke test of Gmail @GmailSignin Scenario Outline: Click on Sign in Given Open chrome When I go to gmail and click on Sign in When I enter "<emailid>" Then I click on next Examples: | emailid | | sarveshsingh.03 | I am using Cucumber-junit-1.1.2 and junit-4.11 Please help could you try upgrading your cucumber-junit ? – Prany Jul 2 at 3:52 ...

How to add Oauth Bearer token in QTP

How to add Oauth Bearer token in QTP I'm working on HP UFT Rest API Testing where i need to Pass "Authorization : Bearer " to perform or execute the Rest Service request then only my service will execute and displays the response. Can any one give me the solutions,How to add Oauth Bearer token in QTP for Rest API Testing. 1 Answer 1 Please refere below link : https://admhelp.microfocus.com/uft/en/14.03/UFT_Help/Content/User_Guide/task_API_coding_manipulate_WSC_properties.htm There will be methods associated with the every block/methods , you can write C# code to append the string to the output of authorization operation and store in a global variable- that can be passed as a input to subsequent operation. BeforeMethod , aftermethods are some of Event Handlers that are assosicated with each operation. By clicking "Post Your Answer",...

Couldn't inspect elements on mobile Android app using uiautomator viewer

Couldn't inspect elements on mobile Android app using uiautomator viewer I'm trying to automate android mobile app using selenium/java with appium. I connected the android device to my pc and trying to inspect the elements on app screen after taking the screenshot using uiautomator viewer. But the whole screen is displayed inside single frameLayout and I couldn't inspect each element inside the frame. I tried with chrome inspect as well but elements are not detected using chrome inspector. Can sometime please help on this? Can you please add the screenshot from the uiautomator? – Vinod Sep 11 '17 at 15:42 have you try to switch to frame. I have added a example .. try that also – Shubham Jain Sep 12 '17 at 6:54 ...