The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
We have our automation scripts within Bitbucket for multiple applications. This is an on-going activity wherein, we will keep adding scripts to bitbucket on daily basis. The testcases are written inside a .java file. A testcase can be identified with a tag “@Test”. The below example is a single testcase. We like a count returned for all the testcases in the repo
Eg:
public void whenRequestingAPolicy_thenSubmitTheRequest() {
start();
AccountSummaryUser user = new UserFactory().retrieveAccountSummaryData("commonUser1Ifbi");
new LoginPage(driver).submitLogin(user.getUsername(), user.getPassword());
ContactUsPage contactUsPage = new MenuWorkflow(driver).accessContactUs();
assertTrue(contactUsPage.isAt());
contactUsPage.selectATopicDropdown.select("Policy");
Select options = new Select(contactUsPage.selectAPolicyTypeElement);
options.selectByIndex(3);
String requestAPolicyComments = randomAlphanumeric(8);
contactUsPage.comments.input(requestAPolicyComments);
ContactUsConfirmationPage contactUsConfirmationPage = contactUsPage.clickContinueButton();
assertTrue(contactUsConfirmationPage.isAtContactUsConfirmation());
dateTimeTestScript = new DateTime();
System.out.println("CONTACT IS POLICY EMAIL SENT TIME TEST SCTIPT " + dateTimeTestScript);
assertEquals("Customer Topic: Policy", new OwaPage(driver).getContactUsText(requestAPolicyComments));
}
I tried the search option in BitBucket for "@Test" but it returns all code that has the value "test".
I don't have a direct solution - but what about parsing test result files / reports?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes - your CI system would make test results and stats readily available.
I assumed that you need to 'count' tests to report on increased test coverage/count?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that's exactly what they are wanting to do. Thanks again...Want a job...you can have mine!!! LOL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.