Skip to main content

Python, Creating program for event viewing

I am testing the product solidcore. During testing, we look at the logs to see what exactly happened in the application.
The log we observe is tomcat.log since the produce is using tomcat. The log can become huge (around 80 to 100 Mb).
I want an application which can display me this log file and refresh it every few seconds (since the log file may change every second).
The app should be really fast.
My brother and friend Justin suggested Python. So did a good office colleague of mine. I am going to read something more about Python and see what it can do.
From the experts
PyDev is a free Eclipse plug-in that transforms Eclipse into a powerful Python and Jython development environment.
http://showmedo.com/videos/series?name=PyDevEclipseList

Complete Install:

There is a 'complete install guide' at http://www.fabioz.com/pydev/manual_101_root.html so, if you have any problems in the install, that's the place you should check (it also guides you through configuring pydev correctly).




Comments

  1. Hi,
    This log and the 80 - 100MB stuff reminds me of one thing. In hollywood movies, esp the ones dealing with cracking hacking etc, we always see "The guys" - hacker ofcourse staring at the screen (probably an X terminal) with lines keep on scrolling upwards automatically.

    I was wondering whether this could be a viable solution, that is 0 if we could keep on updating the messages line by line it wont become 80 or 100 MB and once the lines are read, we could clear(delete) them.

    And by the way, exception could turn up in some bright red color or something.

    For more out of the planet ideas do visit - http://justinlinux.blogspot.com/

    bye

    with regards
    Justin

    ReplyDelete

Post a Comment

Popular posts from this blog

The pesky scrollbars on Remote desktop - Finally fixed!!

  The problem We always had scrollbars (vertical as well as horizontal) when we connect to remote desktop (eg: nftRunbox01). This meant we had to scroll up and down many times to work on rotheram environments.  Full screen was an option, but we wanted to see the taskbar as well as the messages from skype (Paul). I remember my colleagues would not allow pairing unless the scroll bar issue was fixed. :)  We ended up editing rdp files and what we tried to do was... desktopwidth:i:1437 desktopheight:i:865 session bpp:i:24 winposstr:s:0,1,0,20,1437,865 We changed the winposstr values so that horizontal and vertical scroll bars disappear. This was a trial and error method and consumed a lot of time (10 to 15 mts). I looked at a few open source projects and found a project on sourceforge which solved the problem. I was still looking for a way (easier) to solve the scroll bar issue. Solution Just add the following line to your .rdp file. smart sizing:i:1 Old RDP File desktopw...
 I worked on UI Automation using Cucumber, Java and Selenium in a company ( company name hidden due to confidentiality agreement). After creating the framework completely, when it was time to deploy to pipeline, I found we don't have devops team in the company. The devs were helping out by doing devops work in addition to their normal duties. They explained that they can help with C# code ( basically .Net core deployments into agents), but could not help maintaining agents which run JVM ( for Java code). It was time to switch to C#. I found Specflow is a C# implementation of Cucumber and we need Visual Studio ( Professional at least) to continue the work. The management at the highest level were very supportive and they were willing to spend the money and give me all the support to rewrite the entire framework in C#. It was time to make Automation a success in the company. And it was going to be more thrilling than any movie we can imagine with all the twists and turns.

API Testing with Rest Assured - Validating the json schema

Sometimes you would get a json response while testing web applications. To make sure that all fields are present, but at the same time keeping the tests generic, you might write something like this given below.(although, a newbie way of writing tests)  @Category(RegressionTests.class)     @Test     public void verifyResponseByValidatingPresenceOfAllFields() {         given().                 param("product", "HomeLoan").                 param("fromHomeLoanId", -100).         when().                 get("/loans").         then().                 statusCode(200).                 contentType(ContentType.JSON).                 body(containsString("loans"))....