Development

I am using Serenity with Cucumber. Here the HTML report created for each scenario is with a random string.

My questions:

Can we rename those individual HTML report by scenario name?.
Is the HTML report generated right after the scenario is completed? Or after the whole execution?
If an answer to the 2nd question is yes can someone please explain the report generation flow?
Can we get the result during runtime? Or only at the end of the test run?

My requirement is to get test results parallel as soon as each test/scenario/feature is completed.

Thanks!

I’m trying to make a simple test to register in website – https://www.midomi.com/. I’m using c# and selenium but have stuck in selecting values from a dropdown list using Page object model. My project contains test class and page object folder with two classes inside her – home page and register page.

Register page: here I’m having problem to implement code to selecting values from the dropdown list

namespace MidomiRegisterPOM.PageObject
{
class RegisterPage
{
private IWebDriver driver;

//type your email
[FindsBy(How = How.Id, Using = “email”)]
[CacheLookup]
public IWebElement Email { get; set; }

//type your username
[FindsBy(How = How.Id, Using = “username”)]
[CacheLookup]
public IWebElement UserName { get; set; }

//type your password
[FindsBy(How = How.Id, Using = “password”)]
[CacheLookup]
public IWebElement Password { get; set; }

//confirm your password
[FindsBy(How = How.Id, Using = “confirm_password”)]
[CacheLookup]
public IWebElement ConfirmPassword { get; set; }

//here select from dropdown list your birth day, month and year

//mark privacy notice checkbox
[FindsBy(How = How.Id, Using = “tos_pp”)]
[CacheLookup]
public IWebElement PrivacyNotice { get; set; }

//click Continue button
[FindsBy(How = How.Id, Using = “submitLink”)]
[CacheLookup]
public IWebElement ContinueButton { get; set; }

public RegisterPage(IWebDriver driver)
{
this.driver = driver;
PageFactory.InitElements(driver, this);
}
public void RegisterToSite()
{
Email.SendKeys(“testing@gmail.com”);
UserName.SendKeys(“Tester”);
Password.SendKeys(“testing”);
ConfirmPassword.SendKeys(“testing”);
ContinueButton.Submit();
}

I’m trying this but got an error:

Is there any way to select it with [FindsBy] like I’m selecting email, username and password field? Thanks

Here is my code without using POM:

var birthMonth = driver.FindElement(By.Id(“birth_month”));
var selectMonth = new SelectElement(birthMonth);
selectMonth.SelectByValue(“5”);

I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application;
Our application has many roles a user can be; such as an admin, carrier, Power user, and such. Depending on what role you are assigned, determines what you have access to in the application.

An admin has access to all pages, etc.
A Carrier can only see buttons x and y; and can only see menu options A, B, and C for example

A user is required to Authenticate.
I am having trouble visualizing the best way to create my tests/user. Almost all automation tests will need to be run for each user role. (we actually have 4 or 5 different role types, each has different access to parts of the application)

How would this be best handled? Anyone have some examples I can see (I am a visual learner)?

I am not trying to test having multiple users logged in at once; I am trying to test given a persons admin settings in the application – when they log in and authenticate, it will take their login information, and get their role, then the app takes care of what they can and can’t have access to. (I am using a page object model as well)

I have an automation flow where there is a need retrieve a code from an email and input it into as a verification code.
As its a demo I could use any temp email and grab it but I am wondering now what is the simplest way.
I’ve tried it via outlook but company seems to lock down too much and I can’t get the exchange server working.
What would work here?