Arya Ramanujan

Ranch Hand
+ Follow
since Apr 13, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arya Ramanujan

I am looking for some help updating my automation test cases in JIRA Adaptavist Test Management Tool. The test cases are written in Java & TestNg and are running on a VM.
Please suggest what is a good way/method to update test results(Pass Or Fail) automatically in JIRA Adaptavist Test Management Tool.
Currently, we are manually updating results in the tool.

Zephyr and XRay etc., can be used. However, problem with using Zephyr and XRay or any other thrid-party COTS tool is that because of the cumbersome and delayed approval processes.

I appreciate your time, help and support.

Our Android test team developed the following code and we don't know how to achieve as they did.

Here is the android team's code :

1 week ago
I am getting the the following error and are all attached in the previous thread.

- Initially, the Eclipse Oxygen 2 (64 bit) - threw the Java(TM) Platform SE binary is not responding error. It prompted to me to either close the application or wait until it responds.
- I have waited until it responds and found another error with out of memory and suggesting to close the application.
- When I refused to close the application, it displayed the error with Background Indexer Crash Recovery for Java heap space.

The Eclipse's log file log the following info. I do not know what is the fix for it.

!SESSION 2018-09-12 10:11:15.065 -----------------------------------------------
eclipse.buildId=4.7.3.M20180330-0640
java.version=9.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY com.ibm.issw.migr.osgi.liberty 4 0 2018-09-12 10:11:24.541
!MESSAGE Component descriptor entry 'wsadmin.xml' not found

!ENTRY com.ibm.issw.migr.osgi.wasconfig 4 0 2018-09-12 10:11:24.541
!MESSAGE Component descriptor entry 'cell.xml' not found

!ENTRY com.ibm.issw.migr.osgi.wasconfig.jboss 4 0 2018-09-12 10:11:24.572
!MESSAGE Component descriptor entry 'component.xml' not found

!ENTRY com.ibm.issw.migr.osgi.wasconfig.was 4 0 2018-09-12 10:11:24.572
!MESSAGE Component descriptor entry 'cell.xml' not found

!ENTRY com.ibm.issw.migr.osgi.wasconfig.wls 4 0 2018-09-12 10:11:24.572
!MESSAGE Component descriptor entry 'cell.xml' not found

!ENTRY com.ibm.issw.migr.osgi.wsadmin 4 0 2018-09-12 10:11:24.572
!MESSAGE Component descriptor entry 'wsadmin.xml' not found

5 months ago
I have deleted the jars from the classpath and added them again to the classpath changing all jars into one directory. Now, the Eclipse throwing weird errors like as attached.
I have tried much and is just going nowhere.

5 months ago

Campbell Ritchie wrote:Not sure, but let's work out which class is missing first. Sort out one problem at a time. Is it RestAssured or WorkBook? I am not sure whether that is thrown when you start your application or by the testing program, but I suggest you work out where the class has gone.



I have all the jar files in my lib folder and the bin folder contains all the .class files in it. Couldn't figure why that problem is occurring !
5 months ago
Hello,

Class Not Found Exception is thrown by TestNG and the tests are all failing while running the TestNG Batch file. Any ideas, please ?

5 months ago

Arya Ramanujan wrote:Hello,

I am unable to run the batch file for TestNG. The following error occurs when the batch file is executed.
Any thoughts, please ?

Sorry, I have previously posted the incorrect log message, here is the correct message.



5 months ago
Hello,

I am unable to run the batch file for TestNG. The following error occurs when the batch file is executed.
Any thoughts, please ?



5 months ago

Knute Snortum wrote:Have you removed the package statements?  Please include them.  Is Utils in com\root\com?


It is still "com.root.com".
6 months ago

Zach Rode wrote:I know you asked about testing but your formatting is all over the place too.



That block has all kinds of weird stuff going on. I know it might seem insignificant but when you are having others review your code, it matters for readability purposes and impressions (it's the same as mixing up they're, their, and there when you're inconsistent like that). CTRL+SHIFT+F is your friend if you're using Eclipse.

Just for instance you have 3 different whitespace formats going on with your class/method names



As far as tests code, You've already made this class, so unless you start from scratch you can't exactly implement TDD. Download a code coverage tool (never used that framework so I'm not sure if it comes with one), write logical tests for edge cases and normal cases for each method, run coverage tool, right tests to test what you haven't covered; logical ones, coverage for coverage's sake is bad. Rinse and repeat.

-Zach



Thank you - Crtl + Shift + F was very useful.

"As far as tests code, You've already made this class, so unless you start from scratch you can't exactly implement TDD."
I do not know how to start over, so I started with the Utils class, which is what was suggested. I will try using the coverage tool, any suggestions which tool works best for Eclipse.
6 months ago

Knute Snortum wrote:Have you removed the package statements?  Please include them.  Is Utils in com\root\com?



I did not remove them but just while pasting, I deleted them, thought it may not be necessary.
6 months ago

Campbell Ritchie wrote:I suggest you start from scratch with your testing class. I can see all sorts of problems with the current code. Some style and some logic problems:-

  • Always start ClassNames with CapitalLetters.
  • Class Names should be nouns; if you are using adjectives as class names, it suggests to me your class doesn't represent nor constitute an entity in the object‑oriented sense of the word.
  • Don&apo;t risk returning null in line 25: if you have a null throw an exception instead.
  • Only use @SuppressWarnings if you are sure the code it applies to is correct. The following method contains at least four significant errors..
  • Don't make your class do several things. You have methods to open the connection, to print a JSON and claiming to test something.
  • As you know, a utility class contains only static members, only private constructors to prevent instantiation, and no variables. Usually they contain only methods, one private constructor, and public or private constants. A utility class is intended to be used by other code rather than having an existence as an object in its own right.
    For unit testing you test every method available with “normal” and “incorrect” arguments. I would have thought you would be using a framework like JUnit.



    We are using TestNG in our framework. I have formed a utils class the following way :



    Test Class and tried the Test Class the following way :



    Using the utils object, why cannot I access the methods from the base class. Where am I going wrong ?
    6 months ago
    Hello,

    I have the following class, our requirement is to divide this class to Utility and test Classes.
    Our test code is getting optimized and wanted to make it more Utility and config driven.
    Any thoughts, please ?

    6 months ago
    I need to query the DynamoDB using Java. I have a table with IPs and their convictions. Please see attached.
    I need to query the latest and all convicted times from any ip and for some reason, I am getting the credentials error.

    I have tried with the following code.



    Here is the error thrown for IP : I have the keys set in a file called 'AWSCredentials.properties' in the src folder.

    JSON of IP
    Unable to get evidence of the IP.
    Unable to load AWS credentials from any provider in the chain:
    [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), com.amazonaws.auth.profile.ProfileCredentialsProvider@4795ded0: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@66b7550d: Unable to load  credentials from service endpoint]
    6 months ago
    I am sorry, I have tried a lot but it did not work. I have a complex and confusing framework in my system.
    Junilu suggested implementing POM model. So, I am in the process of overhauling it now.
    I will definitely try this with the new framework and post my response soon. My worry is if Logout itself is not identifiable, test may not even move further.
    I will also post my code so that it is easy to review, if it does not work.
    I appreciate you taking time for helping this out.

    Dmitri Tikhanski wrote:If you need to obtain the href attribute of the link with text Logout the relevant XPath query would be something like:



    References:

  • XPath Syntax
  • Using the XPath Extractor in JMeter
  • XPath Examples

  • 6 months ago
    @Jeanne,
    I have tried the following as suggested :


    I am able to see the logout link but unable to click it. Also tried adding explicit wait, with no success.
    The logout link is only seen when the profile link is clicked. I am able to click the profile link to see the logout but unable to click it.


    Jeanne Boyarsky wrote:Note that my previous post is just the syntax in xpath. I didn't think you could return an attribute as a webelement in Selenijm. So I tried it

    This complains that I'm trying to return an attribute rather than a tag.


    This means that you need to use


    That will return you the anchor elements. Then you'll get the attribute for "href" from within Java or whatever language you are calling the Selenium code form.

    7 months ago